// File: /workspace/github_c_makefile_star2_O0/darwin-on-arm[P]darwin-sdk/xcode_tools/xcrun/xcrun.c
// Function: sdk_cfg_handler
static int sdk_cfg_handler(void *user, const char *section, const char *name, const char *value)
{
	sdk_config *config = (sdk_config *)user;

	if (MATCH_INI_STON("SDK", "name"))
		config->name = strdup(value);
	else if (MATCH_INI_STON("SDK", "version"))
		config->version = strdup(value);
	else if (MATCH_INI_STON("SDK", "toolchain"))
		config->toolchain = strdup(value);
	else if (MATCH_INI_STON("SDK", "default_arch"))
		config->default_arch = strdup(value);
	else if (MATCH_INI_STON("SDK", "iphoneos_deployment_target")) {
		ios_deployment_target_set = 1;
		macosx_deployment_target_set = 0;
		config->deployment_target = strdup(value);
	} else if (MATCH_INI_STON("SDK", "macosx_deployment_target")) {
		ios_deployment_target_set = 0;
		macosx_deployment_target_set = 1;
		config->deployment_target = strdup(value);
	} else
		return 0;

	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x1651(%rip), %rsi      # 0x59bc
callq 0x2110
cmpl $0x0, %eax
jne 0x43a2
movq -0x20(%rbp), %rdi
leaq 0x1640(%rip), %rsi      # 0x59c0
callq 0x2110
cmpl $0x0, %eax
jne 0x43a2
movq -0x28(%rbp), %rdi
callq 0x21e0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0x4526
movq -0x18(%rbp), %rdi
leaq 0x160f(%rip), %rsi      # 0x59bc
callq 0x2110
cmpl $0x0, %eax
jne 0x43e5
movq -0x20(%rbp), %rdi
leaq 0xef9(%rip), %rsi       # 0x52bb
callq 0x2110
cmpl $0x0, %eax
jne 0x43e5
movq -0x28(%rbp), %rdi
callq 0x21e0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x4524
movq -0x18(%rbp), %rdi
leaq 0x15cc(%rip), %rsi      # 0x59bc
callq 0x2110
cmpl $0x0, %eax
jne 0x4428
movq -0x20(%rbp), %rdi
leaq 0x16e5(%rip), %rsi      # 0x5aea
callq 0x2110
cmpl $0x0, %eax
jne 0x4428
movq -0x28(%rbp), %rdi
callq 0x21e0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x4522
movq -0x18(%rbp), %rdi
leaq 0x1589(%rip), %rsi      # 0x59bc
callq 0x2110
cmpl $0x0, %eax
jne 0x446b
movq -0x20(%rbp), %rdi
leaq 0x1650(%rip), %rsi      # 0x5a98
callq 0x2110
cmpl $0x0, %eax
jne 0x446b
movq -0x28(%rbp), %rdi
callq 0x21e0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x18(%rax)
jmp 0x4520
movq -0x18(%rbp), %rdi
leaq 0x1546(%rip), %rsi      # 0x59bc
callq 0x2110
cmpl $0x0, %eax
jne 0x44bf
movq -0x20(%rbp), %rdi
leaq 0x161a(%rip), %rsi      # 0x5aa5
callq 0x2110
cmpl $0x0, %eax
jne 0x44bf
movl $0x1, 0x6f35(%rip)      # 0xb3d4
movl $0x0, 0x6f2f(%rip)      # 0xb3d8
movq -0x28(%rbp), %rdi
callq 0x21e0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x20(%rax)
jmp 0x451e
movq -0x18(%rbp), %rdi
leaq 0x14f2(%rip), %rsi      # 0x59bc
callq 0x2110
cmpl $0x0, %eax
jne 0x4513
movq -0x20(%rbp), %rdi
leaq 0x15e1(%rip), %rsi      # 0x5ac0
callq 0x2110
cmpl $0x0, %eax
jne 0x4513
movl $0x0, 0x6ee1(%rip)      # 0xb3d4
movl $0x1, 0x6edb(%rip)      # 0xb3d8
movq -0x28(%rbp), %rdi
callq 0x21e0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x20(%rax)
jmp 0x451c
movl $0x0, -0x4(%rbp)
jmp 0x452d
jmp 0x451e
jmp 0x4520
jmp 0x4522
jmp 0x4524
jmp 0x4526
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)