	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_bridge_d3_update           ## -- Begin function pci_bridge_d3_update
	.p2align	4, 0x90
_pci_bridge_d3_update:                  ## @pci_bridge_d3_update
	.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, %rbx
	addq	$8, %rdi
	callq	_device_is_registered
	movl	%eax, %r15d
	movl	$1, -28(%rbp)
	movq	%rbx, %rdi
	callq	_pci_upstream_bridge
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pci_bridge_d3_possible
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.7:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pci_dev_check_d3cold
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$0, (%r14)
	jne	LBB0_9
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, (%r14)
	jne	LBB0_11
## %bb.4:
	movl	$1, %eax
	cmpl	$0, (%r14)
	jne	LBB0_9
LBB0_6:
	movl	4(%r14), %edi
	movq	_pci_dev_check_d3cold@GOTPCREL(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_pci_walk_bus
	movl	-28(%rbp), %eax
LBB0_9:
	cmpl	%eax, (%r14)
	je	LBB0_11
LBB0_10:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_pci_bridge_d3_update
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	cmpl	%eax, (%r14)
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_bridge_d3_update           ; -- Begin function pci_bridge_d3_update
	.p2align	2
_pci_bridge_d3_update:                  ; @pci_bridge_d3_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	add	x0, x0, #8
	bl	_device_is_registered
	mov	x21, x0
	mov	w8, #1
	str	w8, [sp, #12]
	mov	x0, x20
	bl	_pci_upstream_bridge
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_pci_bridge_d3_possible
	cbz	w0, LBB0_9
; %bb.2:
	cbz	w21, LBB0_8
; %bb.3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_pci_dev_check_d3cold
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w9, [x19]
	cbnz	w9, LBB0_6
LBB0_5:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, _pci_dev_check_d3cold@GOTPAGE
Lloh1:
	ldr	x1, [x1, _pci_dev_check_d3cold@GOTPAGEOFF]
	add	x2, sp, #12
	bl	_pci_walk_bus
	ldr	w8, [sp, #12]
LBB0_6:
	ldr	w9, [x19]
	cmp	w9, w8
	b.eq	LBB0_9
; %bb.7:
	str	w8, [x19]
	mov	x0, x19
	bl	_pci_bridge_d3_update
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
LBB0_9:
	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
	add	sp, sp, #64
	ret
LBB0_10:
	mov	w8, #1
	ldr	w9, [x19]
	cbnz	w9, LBB0_6
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
