	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gma_resume_pci
_gma_resume_pci:                        ## @gma_resume_pci
	.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
	callq	_pci_get_drvdata
	movq	(%rax), %r15
	movl	$1, %r14d
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.1:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_set_power_state
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movl	16(%r15), %edx
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_pci_write_config_dword
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	movl	$252, %esi
	callq	_pci_write_config_dword
	movq	_PSB_PCIx_MSI_ADDR_LOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	movq	_PSB_PCIx_MSI_DATA_LOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	sete	%r14b
	jmp	LBB0_4
LBB0_3:
	movl	$0, (%r15)
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_PSB_PCIx_MSI_ADDR_LOC,4,2      ## @PSB_PCIx_MSI_ADDR_LOC
	.comm	_PSB_PCIx_MSI_DATA_LOC,4,2      ## @PSB_PCIx_MSI_DATA_LOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_enable failed: %d\n"

	.no_dead_strip	_gma_resume_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gma_resume_pci
_gma_resume_pci:                        ; @gma_resume_pci
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	ldr	x20, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_set_power_state
	mov	x0, x19
	bl	_pci_restore_state
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #92
	bl	_pci_write_config_dword
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #252
	bl	_pci_write_config_dword
Lloh3:
	adrp	x8, _PSB_PCIx_MSI_ADDR_LOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSB_PCIx_MSI_ADDR_LOC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh6:
	adrp	x8, _PSB_PCIx_MSI_DATA_LOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSB_PCIx_MSI_DATA_LOC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_pci_write_config_dword
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_5
LBB0_3:
	str	wzr, [x20]
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_PSB_PCIx_MSI_ADDR_LOC,4,2      ; @PSB_PCIx_MSI_ADDR_LOC
	.comm	_PSB_PCIx_MSI_DATA_LOC,4,2      ; @PSB_PCIx_MSI_DATA_LOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_enable failed: %d\n"

	.no_dead_strip	_gma_resume_pci
.subsections_via_symbols
