	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___pci_complete_power_transition ## -- Begin function __pci_complete_power_transition
	.p2align	4, 0x90
___pci_complete_power_transition:       ## @__pci_complete_power_transition
	.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	_PCI_D0@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_pci_platform_power_transition
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%r14, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_pci_bus_set_current_state
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,8,3                     ## @PCI_D0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_D3cold,8,3                 ## @PCI_D3cold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___pci_complete_power_transition ; -- Begin function __pci_complete_power_transition
	.p2align	2
___pci_complete_power_transition:       ; @__pci_complete_power_transition
	.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
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_pci_platform_power_transition
	cbnz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_pci_bus_set_current_state
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,8,3                     ; @PCI_D0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_D3cold,8,3                 ; @PCI_D3cold
.subsections_via_symbols
