	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_io_region
_quirk_io_region:                       ## @quirk_io_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_word
	movl	%r12d, %eax
	negl	%eax
	andl	%eax, -44(%rbp)
	je	LBB0_3
## %bb.1:
	movslq	%r15d, %r13
	leaq	(%r14,%r13,8), %r15
	movq	%rbx, %rdi
	callq	_pci_name
	movl	%eax, 4(%r14,%r13,8)
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14,%r13,8)
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)
	leal	-1(%r12,%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %edi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_pcibios_bus_to_resource
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_pci_claim_resource
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_pci_info
LBB0_3:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"quirk: %pR claimed by %s\n"

	.no_dead_strip	_quirk_io_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_io_region
_quirk_io_region:                       ; @quirk_io_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x0
	ldr	x24, [x0, #8]
	add	x2, sp, #12
	bl	_pci_read_config_word
	neg	w8, w23
	ldr	w9, [sp, #12]
	ands	w8, w9, w8
	str	w8, [sp, #12]
	b.eq	LBB0_3
; %bb.1:
	sxtw	x25, w21
	add	x22, x24, w21, sxtw #3
	mov	x0, x20
	bl	_pci_name
	add	x8, x24, x25, lsl #3
	str	w0, [x8, #4]
Lloh0:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	w8, [sp, #12]
	add	w9, w23, w8
	sub	w9, w9, #1
	stp	w8, w9, [sp]
	ldr	w0, [x20]
	mov	x2, sp
	mov	x1, x22
	bl	_pcibios_bus_to_resource
	mov	x0, x20
	mov	x1, x21
	bl	_pci_claim_resource
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	bl	_pci_info
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"quirk: %pR claimed by %s\n"

	.no_dead_strip	_quirk_io_region
.subsections_via_symbols
