	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_d3_resume
_iwl_trans_pcie_d3_resume:              ## @iwl_trans_pcie_d3_resume
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_iwl_enable_interrupts
LBB0_2:
	movq	_IWL_D3_STATUS_ALIVE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_IWL_D3_STATUS_ALIVE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.11:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_AX210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.12:
	movl	$0, (%r14)
	movq	_UREG_DOORBELL_TO_ISR6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UREG_DOORBELL_TO_ISR6_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_iwl_write_umac_prph
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	callq	_wait_event_timeout
	movl	$0, (%r14)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_ERR
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iwl_set_bit
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_iwl_finish_nic_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rbx
	movq	%r14, %rdi
	callq	_iwl_pcie_conf_msix_hw
	cmpl	$0, 8(%r14)
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_iwl_pcie_reset_ict
LBB0_6:
	movq	%r12, %rdi
	callq	_iwl_enable_interrupts
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iwl_pcie_set_pwr
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.14:
	movq	%r12, %rdi
	callq	_iwl_trans_pcie_tx_reset
	movq	%r12, %rdi
	callq	_iwl_pcie_rx_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_ERR
	jmp	LBB0_16
LBB0_7:
	movl	(%rbx), %ebx
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iwl_clear_bit
LBB0_8:
	movq	_WFPM_GP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_iwl_read_umac_prph
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_POWER
	movq	_CSR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_iwl_read32
	movq	_CSR_RESET_REG_FLAG_NEVO_RESET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.9:
	movq	_IWL_D3_STATUS_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_D3_STATUS_ALIVE,4,2        ## @IWL_D3_STATUS_ALIVE
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to resume the device (RX reset)\n"

L_.str.1:                               ## @.str.1
	.asciz	"WFPM value upon resume = 0x%08X\n"

	.comm	_WFPM_GP2,4,2                   ## @WFPM_GP2
	.comm	_CSR_RESET,4,2                  ## @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_NEVO_RESET,4,2 ## @CSR_RESET_REG_FLAG_NEVO_RESET
	.comm	_IWL_D3_STATUS_RESET,4,2        ## @IWL_D3_STATUS_RESET
	.comm	_IWL_DEVICE_FAMILY_AX210,8,3    ## @IWL_DEVICE_FAMILY_AX210
	.comm	_UREG_DOORBELL_TO_ISR6,4,2      ## @UREG_DOORBELL_TO_ISR6
	.comm	_UREG_DOORBELL_TO_ISR6_RESUME,4,2 ## @UREG_DOORBELL_TO_ISR6_RESUME
	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"Timeout exiting D3\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_iwl_trans_pcie_d3_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_trans_pcie_d3_resume
_iwl_trans_pcie_d3_resume:              ; @iwl_trans_pcie_d3_resume
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
Lloh0:
	adrp	x24, _IWL_D3_STATUS_ALIVE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IWL_D3_STATUS_ALIVE@GOTPAGEOFF]
	cbz	w23, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_iwl_enable_interrupts
Lloh2:
	adrp	x8, _IWL_D3_STATUS_ALIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_D3_STATUS_ALIVE@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _IWL_DEVICE_FAMILY_AX210@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_AX210@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_11
LBB0_4:
	mov	w23, #0
	b	LBB0_13
LBB0_5:
Lloh7:
	adrp	x25, _CSR_GP_CNTRL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _CSR_GP_CNTRL@GOTPAGEOFF]
	ldr	w23, [x25]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_set_bit
	ldr	x1, [x19]
	mov	x0, x19
	bl	_iwl_finish_nic_init
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_iwl_pcie_conf_msix_hw
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_iwl_pcie_reset_ict
LBB0_8:
	mov	x0, x19
	bl	_iwl_enable_interrupts
	mov	x0, x19
	mov	w1, #0
	bl	_iwl_pcie_set_pwr
	cbz	w22, LBB0_14
; %bb.9:
	mov	x0, x19
	bl	_iwl_trans_pcie_tx_reset
	mov	x0, x19
	bl	_iwl_pcie_rx_init
	cbz	w0, LBB0_15
; %bb.10:
	mov	x23, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_13
LBB0_11:
	str	wzr, [x20]
Lloh11:
	adrp	x8, _UREG_DOORBELL_TO_ISR6@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UREG_DOORBELL_TO_ISR6@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _UREG_DOORBELL_TO_ISR6_RESUME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UREG_DOORBELL_TO_ISR6_RESUME@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_iwl_write_umac_prph
	ldp	w1, w0, [x20]
Lloh17:
	adrp	x8, _HZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	bl	_wait_event_timeout
	mov	w23, #0
	str	wzr, [x20]
	cbnz	w0, LBB0_13
; %bb.12:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh22:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w22, [x25]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_iwl_clear_bit
LBB0_15:
Lloh25:
	adrp	x8, _WFPM_GP2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WFPM_GP2@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_read_umac_prph
	mov	x2, x0
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_POWER
Lloh30:
	adrp	x8, _CSR_RESET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CSR_RESET@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_read32
Lloh33:
	adrp	x8, _CSR_RESET_REG_FLAG_NEVO_RESET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CSR_RESET_REG_FLAG_NEVO_RESET@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _IWL_D3_STATUS_RESET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IWL_D3_STATUS_RESET@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x24, x9, eq
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_D3_STATUS_ALIVE,4,2        ; @IWL_D3_STATUS_ALIVE
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to resume the device (RX reset)\n"

l_.str.1:                               ; @.str.1
	.asciz	"WFPM value upon resume = 0x%08X\n"

	.comm	_WFPM_GP2,4,2                   ; @WFPM_GP2
	.comm	_CSR_RESET,4,2                  ; @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_NEVO_RESET,4,2 ; @CSR_RESET_REG_FLAG_NEVO_RESET
	.comm	_IWL_D3_STATUS_RESET,4,2        ; @IWL_D3_STATUS_RESET
	.comm	_IWL_DEVICE_FAMILY_AX210,8,3    ; @IWL_DEVICE_FAMILY_AX210
	.comm	_UREG_DOORBELL_TO_ISR6,4,2      ; @UREG_DOORBELL_TO_ISR6
	.comm	_UREG_DOORBELL_TO_ISR6_RESUME,4,2 ; @UREG_DOORBELL_TO_ISR6_RESUME
	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"Timeout exiting D3\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_iwl_trans_pcie_d3_resume
.subsections_via_symbols
