	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function yenta_search_one_res
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_yenta_search_one_res:                  ## @yenta_search_one_res
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_BRIDGE_IO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PCIBIOS_MIN_CARDBUS_IO@GOTPCREL(%rip), %rax
	movl	$1024, %r9d                     ## imm = 0x400
	jmp	LBB0_8
LBB0_2:
	movq	8(%r15), %rax
	subq	16(%r15), %rax
	movq	_BRIDGE_MEM_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	%rax, %rcx
	shrq	$3, %rcx
	cmpq	%rcx, %r9
	jbe	LBB0_7
## %bb.3:
	incq	%rax
	xorl	%ecx, %ecx
	cmpq	$16, %rax
	jb	LBB0_6
## %bb.4:
	shrq	$3, %rax
	xorl	%ecx, %ecx
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shrq	%rdx
	incl	%ecx
	cmpq	$3, %rax
	movq	%rdx, %rax
	ja	LBB0_5
LBB0_6:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%eax, %r9
LBB0_7:
	cmpq	%r14, %r9
	cmovbeq	%r14, %r9
	movq	_PCIBIOS_MIN_MEM@GOTPCREL(%rip), %rax
	movq	%r9, %rbx
LBB0_8:
	movq	(%rax), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	$4294967295, %r8d               ## imm = 0xFFFFFFFF
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_allocate_resource
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	shrq	%rbx
	movq	%rbx, %r9
	cmpq	%r14, %rbx
	jae	LBB0_9
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_BRIDGE_IO_MAX,8,3              ## @BRIDGE_IO_MAX
	.comm	_PCIBIOS_MIN_CARDBUS_IO,8,3     ## @PCIBIOS_MIN_CARDBUS_IO
	.comm	_BRIDGE_MEM_MAX,8,3             ## @BRIDGE_MEM_MAX
	.comm	_PCIBIOS_MIN_MEM,8,3            ## @PCIBIOS_MIN_MEM
	.no_dead_strip	_yenta_search_one_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yenta_search_one_res
_yenta_search_one_res:                  ; @yenta_search_one_res
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BRIDGE_IO_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRIDGE_IO_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
Lloh6:
	adrp	x8, _PCIBIOS_MIN_CARDBUS_IO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIBIOS_MIN_CARDBUS_IO@GOTPAGEOFF]
	mov	w5, #1024
	b	LBB0_9
LBB0_2:
	ldp	x8, x9, [x21, #8]
	sub	x9, x8, x9
Lloh8:
	adrp	x8, _BRIDGE_MEM_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRIDGE_MEM_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x9, lsr #3
	b.ls	LBB0_8
; %bb.3:
	add	x9, x9, #1
	cmp	x9, #16
	b.hs	LBB0_5
; %bb.4:
	mov	w8, #0
	b	LBB0_7
LBB0_5:
	mov	w8, #0
	lsr	x9, x9, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x10, x9, #1
	add	w8, w8, #1
	cmp	x9, #3
	mov	x9, x10
	b.hi	LBB0_6
LBB0_7:
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x8, w8
LBB0_8:
	cmp	x8, x19
	csel	x5, x8, x19, hi
Lloh11:
	adrp	x8, _PCIBIOS_MIN_MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCIBIOS_MIN_MEM@GOTPAGEOFF]
	mov	x22, x5
LBB0_9:
	ldr	x23, [x8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	w4, #-1
	mov	x6, #0
	mov	x7, #0
	bl	_allocate_resource
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	lsr	x5, x22, #1
	mov	x22, x5
	cmp	x5, x19
	b.hs	LBB0_10
; %bb.12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_BRIDGE_IO_MAX,8,3              ; @BRIDGE_IO_MAX
	.comm	_PCIBIOS_MIN_CARDBUS_IO,8,3     ; @PCIBIOS_MIN_CARDBUS_IO
	.comm	_BRIDGE_MEM_MAX,8,3             ; @BRIDGE_MEM_MAX
	.comm	_PCIBIOS_MIN_MEM,8,3            ; @PCIBIOS_MIN_MEM
	.no_dead_strip	_yenta_search_one_res
.subsections_via_symbols
