	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_choose_state               ## -- Begin function pci_choose_state
	.p2align	4, 0x90
_pci_choose_state:                      ## @pci_choose_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_platform_pci_choose_state
	movq	_PCI_POWER_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.3:
	cmpl	$2, %eax
	je	LBB0_6
## %bb.4:
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_pci_info
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,8,3                     ## @PCI_D0
	.comm	_PCI_POWER_ERROR,8,3            ## @PCI_POWER_ERROR
	.comm	_PCI_D3hot,8,3                  ## @PCI_D3hot
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized suspend event %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_choose_state               ; -- Begin function pci_choose_state
	.p2align	2
_pci_choose_state:                      ; @pci_choose_state
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_platform_pci_choose_state
Lloh0:
	adrp	x8, _PCI_POWER_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_POWER_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	sub	w8, w19, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.3:
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_pci_info
	bl	_BUG
LBB0_6:
Lloh7:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,8,3                     ; @PCI_D0
	.comm	_PCI_POWER_ERROR,8,3            ; @PCI_POWER_ERROR
	.comm	_PCI_D3hot,8,3                  ; @PCI_D3hot
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized suspend event %d\n"

.subsections_via_symbols
