	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_d3_suspend
_iwl_trans_pcie_d3_suspend:             ## @iwl_trans_pcie_d3_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, %r15d
	movq	%rdi, %rbx
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r12
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_AX210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_HW_IF_CONFIG_REG_PERSIST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iwl_set_bit
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_AX210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.4:
	movq	_UREG_DOORBELL_TO_ISR6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UREG_DOORBELL_TO_ISR6_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iwl_write_umac_prph
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	callq	_wait_event_timeout
	movl	$0, (%r12)
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_iwl_pcie_d3_complete_suspend
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_DEVICE_FAMILY_AX210,8,3    ## @IWL_DEVICE_FAMILY_AX210
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ## @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_PERSIST_MODE,4,2 ## @CSR_HW_IF_CONFIG_REG_PERSIST_MODE
	.comm	_UREG_DOORBELL_TO_ISR6,4,2      ## @UREG_DOORBELL_TO_ISR6
	.comm	_UREG_DOORBELL_TO_ISR6_SUSPEND,4,2 ## @UREG_DOORBELL_TO_ISR6_SUSPEND
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout entering D3\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_iwl_trans_pcie_d3_suspend
.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_suspend
_iwl_trans_pcie_d3_suspend:             ; @iwl_trans_pcie_d3_suspend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x22, x0
Lloh0:
	adrp	x23, _IWL_DEVICE_FAMILY_AX210@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IWL_DEVICE_FAMILY_AX210@GOTPAGEOFF]
	cbnz	w19, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _CSR_HW_IF_CONFIG_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_PERSIST_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_PERSIST_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_iwl_set_bit
LBB0_3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _UREG_DOORBELL_TO_ISR6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UREG_DOORBELL_TO_ISR6@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _UREG_DOORBELL_TO_ISR6_SUSPEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UREG_DOORBELL_TO_ISR6_SUSPEND@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_iwl_write_umac_prph
	ldp	w1, w0, [x22]
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	bl	_wait_event_timeout
	str	wzr, [x22]
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_iwl_pcie_d3_complete_suspend
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
Lloh19:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_DEVICE_FAMILY_AX210,8,3    ; @IWL_DEVICE_FAMILY_AX210
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ; @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_PERSIST_MODE,4,2 ; @CSR_HW_IF_CONFIG_REG_PERSIST_MODE
	.comm	_UREG_DOORBELL_TO_ISR6,4,2      ; @UREG_DOORBELL_TO_ISR6
	.comm	_UREG_DOORBELL_TO_ISR6_SUSPEND,4,2 ; @UREG_DOORBELL_TO_ISR6_SUSPEND
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout entering D3\n"

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