	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_d3_complete_suspend   ## -- Begin function iwl_pcie_d3_complete_suspend
	.p2align	4, 0x90
_iwl_pcie_d3_complete_suspend:          ## @iwl_pcie_d3_complete_suspend
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_iwl_disable_interrupts
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_iwl_pcie_disable_ict
	movq	%r15, %rdi
	callq	_iwl_pcie_synchronize_irqs
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iwl_clear_bit
	movl	(%r12), %ebx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iwl_clear_bit
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_iwl_trans_pcie_tx_reset
LBB0_3:
	movq	%r15, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_pcie_set_pwr               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_d3_complete_suspend   ; -- Begin function iwl_pcie_d3_complete_suspend
	.p2align	2
_iwl_pcie_d3_complete_suspend:          ; @iwl_pcie_d3_complete_suspend
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iwl_disable_interrupts
	cbz	w21, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x19
	bl	_iwl_pcie_disable_ict
	mov	x0, x19
	bl	_iwl_pcie_synchronize_irqs
Lloh0:
	adrp	x22, _CSR_GP_CNTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CSR_GP_CNTRL@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_clear_bit
	ldr	w21, [x22]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_clear_bit
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_iwl_trans_pcie_tx_reset
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	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
	b	_iwl_pcie_set_pwr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
.subsections_via_symbols
