	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_set_cmd_in_flight
_iwl_pcie_set_cmd_in_flight:            ## @iwl_pcie_set_cmd_in_flight
	.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
	movq	%rdi, %r15
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	callq	_lockdep_assert_held
	movq	_STATUS_TRANS_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	xorl	%ebx, %ebx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.4:
	cmpl	$0, (%r14)
	jne	LBB0_8
## %bb.5:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	___iwl_trans_pcie_set_bit
	movl	(%r13), %r12d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_BIT
	movq	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	$15000, %r8d                    ## imm = 0x3A98
	callq	_iwl_poll_bit
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	$1, (%r14)
	jmp	LBB0_8
LBB0_6:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	___iwl_trans_pcie_clear_bit
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_TRANS_DEAD,4,2          ## @STATUS_TRANS_DEAD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP,4,2 ## @CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to wake NIC for hcmd\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_iwl_pcie_set_cmd_in_flight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_set_cmd_in_flight
_iwl_pcie_set_cmd_in_flight:            ; @iwl_pcie_set_cmd_in_flight
	.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, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
	add	x0, x0, #4
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _STATUS_TRANS_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_TRANS_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w9, [x20]
	cbz	w9, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
Lloh5:
	adrp	x23, _CSR_GP_CNTRL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CSR_GP_CNTRL@GOTPAGEOFF]
	ldr	w21, [x23]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	___iwl_trans_pcie_set_bit
	ldr	w21, [x23]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_BIT
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_BIT
Lloh7:
	adrp	x8, _CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w3, w8, w0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w4, #15000
	bl	_iwl_poll_bit
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_9:
	ldr	w20, [x23]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	___iwl_trans_pcie_clear_bit
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_TRANS_DEAD,4,2          ; @STATUS_TRANS_DEAD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP,4,2 ; @CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to wake NIC for hcmd\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_iwl_pcie_set_cmd_in_flight
.subsections_via_symbols
