	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _resolve_arch
__resolve_arch:                         ## @_resolve_arch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_R_SYS_ARCH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rdi
	movl	$62, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	1(%rax), %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_R_SYS_ARCH_X86@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	$32, (%r14)
	addq	$5, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_str_startswith
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.5:
	movl	$64, (%r14)
	jmp	LBB0_21
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_R_SYS_ARCH_MIPS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	_R_SYS_ARCH_ARM@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	$64, (%r14)
	jmp	LBB0_20
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_R_SYS_ARCH_ARM@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	$32, (%r14)
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_R_SYS_ARCH_X86@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_str_startswith
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.13:
	movq	_R_SYS_ARCH_MIPS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
	movl	$32, (%r14)
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.9(%rip), %rdi
	movq	%rbx, %rsi
	callq	_eprintf
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_R_SYS_ARCH_NONE,8,3            ## @R_SYS_ARCH_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<architecture"

L_.str.1:                               ## @.str.1
	.asciz	"i386"

	.comm	_R_SYS_ARCH_X86,8,3             ## @R_SYS_ARCH_X86
L_.str.2:                               ## @.str.2
	.asciz	":x86-64"

L_.str.3:                               ## @.str.3
	.asciz	"aarch64"

	.comm	_R_SYS_ARCH_ARM,8,3             ## @R_SYS_ARCH_ARM
L_.str.4:                               ## @.str.4
	.asciz	"arm"

L_.str.5:                               ## @.str.5
	.asciz	"mips"

	.comm	_R_SYS_ARCH_MIPS,8,3            ## @R_SYS_ARCH_MIPS
L_.str.6:                               ## @.str.6
	.asciz	"com.apple.debugserver.arm64"

L_.str.7:                               ## @.str.7
	.asciz	"org.gnu.gdb.mips"

L_.str.8:                               ## @.str.8
	.asciz	"com.apple.debugserver.x86_64"

L_.str.9:                               ## @.str.9
	.asciz	"Unknown architecture parsing XML (%s)\n"

	.no_dead_strip	__resolve_arch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _resolve_arch
__resolve_arch:                         ; @_resolve_arch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _R_SYS_ARCH_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_SYS_ARCH_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.1:
	mov	w1, #62
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	add	x20, x0, #1
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_r_str_startswith
	cbz	x0, LBB0_9
; %bb.3:
Lloh7:
	adrp	x8, _R_SYS_ARCH_X86@GOTPAGE
Lloh8:
	ldr	x8, [x8, _R_SYS_ARCH_X86@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #32
	str	w8, [x19]
	add	x0, x21, #5
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_r_str_startswith
	cbz	x0, LBB0_17
; %bb.4:
	mov	w0, #0
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbnz	x0, LBB0_10
; %bb.6:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_18
LBB0_7:
	mov	w0, #0
Lloh16:
	adrp	x8, _R_SYS_ARCH_MIPS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _R_SYS_ARCH_MIPS@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	mov	w0, #-1
	b	LBB0_17
LBB0_9:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_r_str_startswith
	cbz	x0, LBB0_13
LBB0_10:
	mov	w0, #0
Lloh20:
	adrp	x8, _R_SYS_ARCH_ARM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_SYS_ARCH_ARM@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_12:
	mov	w8, #64
	b	LBB0_16
LBB0_13:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_r_str_startswith
	cbz	x0, LBB0_20
; %bb.14:
	mov	w0, #0
Lloh24:
	adrp	x8, _R_SYS_ARCH_ARM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R_SYS_ARCH_ARM@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #32
LBB0_16:
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_21
; %bb.19:
	mov	w0, #0
Lloh28:
	adrp	x8, _R_SYS_ARCH_X86@GOTPAGE
Lloh29:
	ldr	x8, [x8, _R_SYS_ARCH_X86@GOTPAGEOFF]
	b	LBB0_11
LBB0_20:
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_r_str_startswith
	cbnz	x0, LBB0_7
	b	LBB0_17
LBB0_21:
Lloh32:
	adrp	x0, l_.str.9@PAGE
Lloh33:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x20
	bl	_eprintf
	mov	w0, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_R_SYS_ARCH_NONE,8,3            ; @R_SYS_ARCH_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<architecture"

l_.str.1:                               ; @.str.1
	.asciz	"i386"

	.comm	_R_SYS_ARCH_X86,8,3             ; @R_SYS_ARCH_X86
l_.str.2:                               ; @.str.2
	.asciz	":x86-64"

l_.str.3:                               ; @.str.3
	.asciz	"aarch64"

	.comm	_R_SYS_ARCH_ARM,8,3             ; @R_SYS_ARCH_ARM
l_.str.4:                               ; @.str.4
	.asciz	"arm"

l_.str.5:                               ; @.str.5
	.asciz	"mips"

	.comm	_R_SYS_ARCH_MIPS,8,3            ; @R_SYS_ARCH_MIPS
l_.str.6:                               ; @.str.6
	.asciz	"com.apple.debugserver.arm64"

l_.str.7:                               ; @.str.7
	.asciz	"org.gnu.gdb.mips"

l_.str.8:                               ; @.str.8
	.asciz	"com.apple.debugserver.x86_64"

l_.str.9:                               ; @.str.9
	.asciz	"Unknown architecture parsing XML (%s)\n"

	.no_dead_strip	__resolve_arch
.subsections_via_symbols
