	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_bridge_release_resources
_pci_bridge_release_resources:          ## @pci_bridge_release_resources
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_PCI_BRIDGE_RESOURCES@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	shlq	$5, %rbx
	addq	(%r15), %rbx
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	shlq	$5, %rax
	cmpl	$0, 24(%rbx,%rax)
	je	LBB0_11
## %bb.9:
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_release_child_resources
	movq	%rbx, %rdi
	callq	_release_resource
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_PCI_RES_TYPE_MASK@GOTPCREL(%rip), %rax
	movq	%r13, %rcx
	movl	(%rax), %r13d
	andl	(%rbx), %r13d
	addq	(%rcx), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_pci_info
	movq	%rbx, %rdi
	callq	_resource_size
	decq	%rax
	movq	%rax, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	_IORESOURCE_PREFETCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testl	%r13d, %esi
	cmoveq	%r13, %rsi
	movq	%r14, %rdi
	callq	___pci_setup_bridge
	movq	%r13, (%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_IORESOURCE_PREFETCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rsi, %rax
	je	LBB0_3
## %bb.4:
	movq	_IORESOURCE_MEM_64@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	64(%rbx), %rcx
	movq	%rcx, %rdx
	andq	%rdi, %rdx
	testq	%rsi, %rdi
	je	LBB0_7
## %bb.5:
	movl	$2, %r12d
	testq	%rdx, %rdx
	jne	LBB0_8
## %bb.6:
	xorl	%edx, %edx
LBB0_7:
	testq	%rdx, %rdx
	setne	%dl
	testq	%rax, %rcx
	sete	%al
	orb	%dl, %al
	movzbl	%al, %eax
	movl	$2, %r12d
	subq	%rax, %r12
	jmp	LBB0_8
LBB0_3:
	movl	$1, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BRIDGE_RESOURCES,8,3       ## @PCI_BRIDGE_RESOURCES
	.comm	_IORESOURCE_IO,8,3              ## @IORESOURCE_IO
	.comm	_IORESOURCE_PREFETCH,8,3        ## @IORESOURCE_PREFETCH
	.comm	_IORESOURCE_MEM_64,8,3          ## @IORESOURCE_MEM_64
	.comm	_PCI_RES_TYPE_MASK,4,2          ## @PCI_RES_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resource %d %pR released\n"

	.no_dead_strip	_pci_bridge_release_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_bridge_release_resources
_pci_bridge_release_resources:          ; @pci_bridge_release_resources
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _PCI_BRIDGE_RESOURCES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_BRIDGE_RESOURCES@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #5
Lloh2:
	adrp	x9, _IORESOURCE_IO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IORESOURCE_IO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	tst	x9, x1
	b.eq	LBB0_6
; %bb.1:
	mov	x23, #0
LBB0_2:
	add	x21, x8, x23, lsl #5
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_release_child_resources
	mov	x0, x21
	bl	_release_resource
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _PCI_RES_TYPE_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_RES_TYPE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w24, w9, w8
	ldr	x8, [x22]
	add	x2, x8, x23
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_pci_info
	mov	x0, x21
	bl	_resource_size
	sub	x8, x0, #1
	stp	xzr, x8, [x21, #8]
	str	xzr, [x21]
Lloh10:
	adrp	x8, _IORESOURCE_PREFETCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IORESOURCE_PREFETCH@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	tst	x8, x24
	csel	x1, x24, x8, eq
	mov	x0, x19
	bl	___pci_setup_bridge
	str	x24, [x21]
LBB0_5:
	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
LBB0_6:
Lloh13:
	adrp	x9, _IORESOURCE_PREFETCH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IORESOURCE_PREFETCH@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	tst	x9, x1
	b.eq	LBB0_10
; %bb.7:
Lloh16:
	adrp	x10, _IORESOURCE_MEM_64@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IORESOURCE_MEM_64@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x10]
	ldr	x10, [x8, #64]
	and	x11, x10, x12
	tst	x12, x1
	b.eq	LBB0_11
; %bb.8:
	cbz	x11, LBB0_11
; %bb.9:
	mov	w23, #2
	b	LBB0_2
LBB0_10:
	mov	w23, #1
	b	LBB0_2
LBB0_11:
	tst	x10, x9
	ccmp	x11, #0, #0, ne
	mov	w9, #1
	cinc	x23, x9, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BRIDGE_RESOURCES,8,3       ; @PCI_BRIDGE_RESOURCES
	.comm	_IORESOURCE_IO,8,3              ; @IORESOURCE_IO
	.comm	_IORESOURCE_PREFETCH,8,3        ; @IORESOURCE_PREFETCH
	.comm	_IORESOURCE_MEM_64,8,3          ; @IORESOURCE_MEM_64
	.comm	_PCI_RES_TYPE_MASK,4,2          ; @PCI_RES_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resource %d %pR released\n"

	.no_dead_strip	_pci_bridge_release_resources
.subsections_via_symbols
