	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_release_resource           ## -- Begin function pci_release_resource
	.p2align	4, 0x90
_pci_release_resource:                  ## @pci_release_resource
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movslq	%esi, %rdx
	movq	%rdx, %rbx
	shlq	$5, %rbx
	leaq	(%r15,%rbx), %r14
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	callq	_pci_info
	cmpl	$0, 24(%r15,%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_release_resource
	movq	%r14, %rdi
	callq	_resource_size
	decq	%rax
	movq	%rax, 16(%r15,%rbx)
	movq	$0, 8(%r15,%rbx)
	movq	_IORESOURCE_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAR %d: releasing %pR\n"

	.comm	_IORESOURCE_UNSET,4,2           ## @IORESOURCE_UNSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_release_resource           ; -- Begin function pci_release_resource
	.p2align	2
_pci_release_resource:                  ; @pci_release_resource
	.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	x2, x1
	ldr	x8, [x0]
	sxtw	x9, w2
	add	x19, x8, x9, lsl #5
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x19
	bl	_pci_info
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_release_resource
	mov	x0, x19
	bl	_resource_size
	sub	x8, x0, #1
	stp	xzr, x8, [x19, #8]
Lloh2:
	adrp	x8, _IORESOURCE_UNSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_UNSET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAR %d: releasing %pR\n"

	.comm	_IORESOURCE_UNSET,4,2           ; @IORESOURCE_UNSET
.subsections_via_symbols
