	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_hcmd_complete         ## -- Begin function iwl_pcie_hcmd_complete
	.p2align	4, 0x90
_iwl_pcie_hcmd_complete:                ## @iwl_pcie_hcmd_complete
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_rxb_addr
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_SEQ_TO_QUEUE
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_SEQ_TO_INDEX
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %rbx
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rax,%rcx,8), %r14
	movslq	%r12d, %rax
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setne	%dil
	movl	16(%r14), %eax
	movl	20(%r14), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r15d, %r8d
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$32, %edx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_print_hex_error            ## TAILCALL
LBB0_1:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_iwl_pcie_get_cmd_index
	movq	8(%r14), %r15
	cltq
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r15,%rbx,8), %r13
	movq	16(%r15,%rbx,8), %rax
	movl	(%rax), %edi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %esi
	xorl	%edx, %edx
	callq	_iwl_cmd_id
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movq	%r13, %r12
	movq	%rax, %r13
	callq	_iwl_pcie_tfd_unmap
	movl	(%r15,%rbx,8), %eax
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_rxb_steal_page
	movq	8(%r15,%rbx,8), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 16(%rcx)
	movq	%rax, %rdi
	callq	_page_address
	movq	8(%r15,%rbx,8), %rcx
	movq	%rax, (%rcx)
	movl	12(%r13), %eax
	movl	%eax, 8(%rcx)
	movl	(%r12), %eax
LBB0_3:
	movq	%r12, %r15
	movq	_CMD_WANT_ASYNC_CALLBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_op_mode_async_cb
LBB0_5:
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_iwl_pcie_cmdq_reclaim
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %r13
	testl	%eax, (%r15)
	jne	LBB0_9
## %bb.6:
	movq	_STATUS_SYNC_HCMD_ACTIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_iwl_get_cmd_string
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IWL_WARN
LBB0_8:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_iwl_get_cmd_string
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_INFO
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_wake_up
LBB0_9:
	movl	$0, (%r13)
	movq	%r14, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong command queue %d (should be %d), sequence 0x%X readp=%d writep=%d\n"

	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_CMD_WANT_ASYNC_CALLBACK,4,2    ## @CMD_WANT_ASYNC_CALLBACK
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_STATUS_SYNC_HCMD_ACTIVE,4,2    ## @STATUS_SYNC_HCMD_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"HCMD_ACTIVE already clear for command %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Clearing HCMD_ACTIVE for command %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_hcmd_complete         ; -- Begin function iwl_pcie_hcmd_complete
	.p2align	2
_iwl_pcie_hcmd_complete:                ; @iwl_pcie_hcmd_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rxb_addr
	mov	x26, x0
	ldr	w0, [x0]
	bl	_le16_to_cpu
	mov	x22, x0
	bl	_SEQ_TO_QUEUE
	mov	x23, x0
	mov	x0, x22
	bl	_SEQ_TO_INDEX
	mov	x24, x0
	mov	x0, x19
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x3, [x0]
	ldr	x20, [x8, x3, lsl #3]
	cmp	x3, w23, sxtw
	cset	w0, ne
	ldp	w6, w5, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
	bl	_WARN
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x26
	mov	w2, #32
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_iwl_print_hex_error
LBB0_2:
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x20
	mov	x1, x24
	bl	_iwl_pcie_get_cmd_index
	mov	x25, x0
	ldr	x28, [x20, #8]
	mov	w8, #24
	smaddl	x22, w0, w8, x28
	ldr	x8, [x22, #16]
	ldp	w0, w1, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w2, #0
	bl	_iwl_cmd_id
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x24
	bl	_iwl_pcie_tfd_unmap
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _CMD_WANT_SKB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	sxtw	x25, w25
	mov	x0, x27
	bl	_rxb_steal_page
	mov	w8, #24
	madd	x25, x25, x8, x28
	ldr	x8, [x25, #8]
	str	x26, [x8, #16]
	bl	_page_address
	ldr	x8, [x25, #8]
	str	x0, [x8]
	ldr	w9, [x21, #12]
	str	w9, [x8, #8]
	ldr	w8, [x22]
LBB0_4:
Lloh5:
	adrp	x9, _CMD_WANT_ASYNC_CALLBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CMD_WANT_ASYNC_CALLBACK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_iwl_op_mode_async_cb
LBB0_6:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_iwl_pcie_cmdq_reclaim
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _CMD_ASYNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMD_ASYNC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.7:
Lloh11:
	adrp	x23, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_bit
	ldr	w24, [sp, #4]                   ; 4-byte Folded Reload
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x24
	bl	_iwl_get_cmd_string
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
LBB0_9:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	mov	x1, x24
	bl	_iwl_get_cmd_string
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	add	x0, x21, #8
	bl	_wake_up
LBB0_10:
	str	wzr, [x22]
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_bh
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong command queue %d (should be %d), sequence 0x%X readp=%d writep=%d\n"

	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_CMD_WANT_ASYNC_CALLBACK,4,2    ; @CMD_WANT_ASYNC_CALLBACK
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_STATUS_SYNC_HCMD_ACTIVE,4,2    ; @STATUS_SYNC_HCMD_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"HCMD_ACTIVE already clear for command %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Clearing HCMD_ACTIVE for command %s\n"

.subsections_via_symbols
