	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcib_alloc
_pcib_alloc:                            ## @pcib_alloc
	.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
	testb	$1, %sil
	jne	LBB0_1
## %bb.2:
	leaq	32(%rdi), %rcx
	movq	_PCI_MIN_MEM_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%rdi), %eax
	cltd
	idivl	%r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$24, %rdi
	movl	$-16, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	40(%rdi), %rcx
	movq	_PCI_MIN_IO_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %eax
	cltd
	idivl	%r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$8, %rdi
	movl	$-4, %eax
LBB0_3:
	andl	%esi, %eax
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	negl	%eax
	cltd
	idivl	%r14d
	movl	%eax, %r13d
	imull	%eax, %r14d
	movl	%r14d, %r12d
	negl	%r12d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%r13), %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	callq	_pcib_map_check
	addl	%r14d, %r12d
	movl	%ebx, %esi
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	subl	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_pcib_map_set
	movslq	%r12d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	%rcx, %rax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_MIN_IO_ALLOC,4,2           ## @PCI_MIN_IO_ALLOC
	.comm	_PCI_MIN_MEM_ALLOC,4,2          ## @PCI_MIN_MEM_ALLOC
	.no_dead_strip	_pcib_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcib_alloc
_pcib_alloc:                            ; @pcib_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	tbnz	w1, #0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCI_MIN_MEM_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_MIN_MEM_ALLOC@GOTPAGEOFF]
	add	x10, x0, #32
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x0, #16]
	sdiv	w21, w8, w9
	add	x0, x0, #24
	mov	w11, #-16
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _PCI_MIN_IO_ALLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_MIN_IO_ALLOC@GOTPAGEOFF]
	add	x10, x0, #40
Lloh5:
	ldr	w9, [x8]
	ldr	w8, [x0], #8
	sdiv	w21, w8, w9
	mov	w11, #-4
LBB0_3:
	mov	w8, #0
	and	w11, w11, w1
	ldr	x22, [x10]
	ldr	x19, [x0]
	neg	w10, w11
	sdiv	w20, w10, w9
	mul	w24, w9, w20
	mneg	w23, w9, w20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w25, w8, w20
	cmp	w25, w21
	b.gt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x8
	mov	x2, x20
	bl	_pcib_map_check
	add	w23, w23, w24
	mov	x8, x25
	cbz	x0, LBB0_4
; %bb.6:
	sub	w1, w25, w20
	mov	x0, x19
	mov	x2, x20
	bl	_pcib_map_set
	add	x0, x22, w23, sxtw
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_MIN_IO_ALLOC,4,2           ; @PCI_MIN_IO_ALLOC
	.comm	_PCI_MIN_MEM_ALLOC,4,2          ; @PCI_MIN_MEM_ALLOC
	.no_dead_strip	_pcib_alloc
.subsections_via_symbols
