	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_target_state
_pci_target_state:                      ## @pci_target_state
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_platform_pci_power_manageable
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_platform_pci_choose_state
	movl	%eax, %r15d
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_14
## %bb.2:
	movl	%r15d, %eax
	addl	$-130, %eax
	cmpl	$1, %eax
	ja	LBB0_13
## %bb.3:
	movq	%r14, %rdi
	callq	_pci_no_d1d2
	testl	%eax, %eax
	jne	LBB0_14
LBB0_13:
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_5:
	cmpl	$0, 12(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	movq	_PCI_D3cold@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, (%r14)
	cmovnel	%eax, %ebx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.8:
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %eax
	jb	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	decl	%ebx
	jne	LBB0_10
## %bb.12:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_PCI_D3cold,8,3                 ## @PCI_D3cold
	.no_dead_strip	_pci_target_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_target_state
_pci_target_state:                      ; @pci_target_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_platform_pci_power_manageable
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_platform_pci_choose_state
	sub	w8, w0, #128
	cmp	w8, #2
	b.lo	LBB0_10
; %bb.2:
	mov	x21, x0
	sub	w8, w0, #130
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_pci_no_d1d2
	cbnz	w0, LBB0_10
LBB0_4:
	mov	x19, x21
	b	LBB0_10
LBB0_5:
	ldr	w8, [x20, #12]
Lloh3:
	adrp	x9, _PCI_D0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_D0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, w19, eq
	ldr	x9, [x20]
Lloh6:
	adrp	x10, _PCI_D3cold@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCI_D3cold@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	w19, w10, w8, eq
	cbz	w21, LBB0_10
; %bb.6:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_10
; %bb.7:
	cbz	w19, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w8, w19
	tbnz	w9, #0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	w19, w19, #1
	b.ne	LBB0_8
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_PCI_D3cold,8,3                 ; @PCI_D3cold
	.no_dead_strip	_pci_target_state
.subsections_via_symbols
