	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reserve_fn_bar
_reserve_fn_bar:                        ## @reserve_fn_bar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_to_pci_dev
	cmpl	$4, %ebx
	ja	LBB0_2
## %bb.1:
	movl	$21, %ecx
	btl	%ebx, %ecx
	jae	LBB0_2
## %bb.3:
	movl	%ebx, %ecx
	shrl	%ecx
	movq	(%r14), %rdx
	movl	(%rdx,%rcx,4), %esi
	leal	1(%rsi), %edi
	movl	%edi, (%rdx,%rcx,4)
	testl	%esi, %esi
	je	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_pci_request_region
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocxl"

	.no_dead_strip	_reserve_fn_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reserve_fn_bar
_reserve_fn_bar:                        ; @reserve_fn_bar
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_pci_dev
	cmp	w19, #4
	b.hi	LBB0_5
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w19
	mov	w9, #21
	tst	w8, w9
	b.eq	LBB0_5
; %bb.2:
	lsr	w8, w19, #1
	ldr	x9, [x20]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	add	w11, w10, #1
	str	w11, [x9, x8]
	cbz	w10, LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pci_request_region
	cbnz	w0, LBB0_6
	b	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocxl"

	.no_dead_strip	_reserve_fn_bar
.subsections_via_symbols
