	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_target_auxv_search             ## -- Begin function target_auxv_search
	.p2align	4, 0x90
_target_auxv_search:                    ## @target_auxv_search
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rsi
	callq	_target_auxv_read
	movq	-48(%rbp), %rdx
	movq	%rdx, -72(%rbp)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	leaq	-56(%rbp), %r13
	leaq	-52(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r12, %rdx
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_target_auxv_parse
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx
	cmpl	%r15d, -56(%rbp)
	jne	LBB0_2
## %bb.6:
	movq	%rdx, %rdi
	callq	_xfree
	movl	-52(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_xfree
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_xfree
	movl	$-1, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_target_auxv_search             ; -- Begin function target_auxv_search
	.p2align	2
_target_auxv_search:                    ; @target_auxv_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #16
	bl	_target_auxv_read
	mov	x8, x0
	ldr	x0, [sp, #16]
	str	x0, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w22, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x0, x22
	add	x1, sp, #8
	add	x3, sp, #28
	add	x4, sp, #24
	mov	x0, x21
	bl	_target_auxv_parse
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #28]
	ldr	x0, [sp, #16]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.4:
	bl	_xfree
	ldr	w8, [sp, #24]
	str	w8, [x19]
	mov	w8, #1
	b	LBB0_8
LBB0_5:
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x0, [sp, #16]
	bl	_xfree
	mov	w8, #0
	b	LBB0_8
LBB0_7:
	ldr	x0, [sp, #16]
	bl	_xfree
	mov	w8, #-1
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
