	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pci_request_region
___pci_request_region:                  ## @__pci_request_region
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pci_resource_len
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_resource_start
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_resource_len
	movl	%r13d, %edi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_request_region
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_resource_start
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_resource_len
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	___request_mem_region
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_find_pci_dr
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	orl	%edx, (%rax)
	jmp	LBB0_9
LBB0_8:
	movslq	%r15d, %rcx
	shlq	$2, %rcx
	addq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_pci_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %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	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAR %d: can't reserve %pR\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	___pci_request_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pci_request_region
___pci_request_region:                  ; @__pci_request_region
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_pci_resource_len
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_resource_flags
Lloh0:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_resource_start
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_request_region
	cbnz	w0, LBB0_5
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_resource_flags
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_resource_start
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x23
	mov	x2, x21
	mov	x3, x22
	bl	___request_mem_region
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_find_pci_dr
	cbz	x0, LBB0_8
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #1
	lsl	w9, w9, w19
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	add	x3, x8, w19, sxtw #2
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_pci_warn
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAR %d: can't reserve %pR\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	___pci_request_region
.subsections_via_symbols
