	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gma_suspend_pci
_gma_suspend_pci:                       ## @gma_suspend_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_pci_get_drvdata
	movq	(%rax), %r14
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_save_state
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_pci_read_config_dword
	movl	-24(%rbp), %eax
	movl	%eax, 12(%r14)
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$252, %esi
	callq	_pci_read_config_dword
	movl	-20(%rbp), %eax
	movl	%eax, 16(%r14)
	movq	_PSB_PCIx_MSI_ADDR_LOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r14), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movq	_PSB_PCIx_MSI_DATA_LOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r14), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_set_power_state
	movl	$1, (%r14)
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.no_dead_strip	_gma_suspend_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gma_suspend_pci
_gma_suspend_pci:                       ; @gma_suspend_pci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	ldr	x20, [x0]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pci_save_state
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #92
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	str	w8, [x20, #12]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #252
	bl	_pci_read_config_dword
	ldr	w8, [sp, #8]
	str	w8, [x20, #16]
Lloh0:
	adrp	x8, _PSB_PCIx_MSI_ADDR_LOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSB_PCIx_MSI_ADDR_LOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x20, #4
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh3:
	adrp	x8, _PSB_PCIx_MSI_DATA_LOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSB_PCIx_MSI_DATA_LOC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x20, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	mov	x0, x19
	bl	_pci_disable_device
Lloh6:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_set_power_state
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.no_dead_strip	_gma_suspend_pci
.subsections_via_symbols
