	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_gen2_send_hcmd  ## -- Begin function iwl_trans_pcie_gen2_send_hcmd
	.p2align	4, 0x90
_iwl_trans_pcie_gen2_send_hcmd:         ## @iwl_trans_pcie_gen2_send_hcmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movq	_CMD_SEND_IN_RFKILL@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
LBB0_3:
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_11
## %bb.4:
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_STATUS_RFKILL_OPMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RF_KILL
	movq	_ERFKILL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_pcie_gen2_send_hcmd_sync   ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwl_pcie_gen2_enqueue_hcmd
	movl	%eax, %r15d
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jns	LBB0_9
## %bb.8:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_iwl_get_cmd_string
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_IWL_ERR
	movl	%r15d, %eax
	jmp	LBB0_9
LBB0_2:
	movl	(%rbx), %edi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_SEND_IN_RFKILL,4,2         ## @CMD_SEND_IN_RFKILL
	.comm	_STATUS_RFKILL_OPMODE,4,2       ## @STATUS_RFKILL_OPMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dropping CMD 0x%x: RF KILL\n"

	.comm	_ERFKILL,4,2                    ## @ERFKILL
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Error sending %s: enqueue_hcmd failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_gen2_send_hcmd  ; -- Begin function iwl_trans_pcie_gen2_send_hcmd
	.p2align	2
_iwl_trans_pcie_gen2_send_hcmd:         ; @iwl_trans_pcie_gen2_send_hcmd
	.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, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _CMD_SEND_IN_RFKILL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_SEND_IN_RFKILL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_1:
Lloh3:
	adrp	x9, _CMD_ASYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_ASYNC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
Lloh6:
	adrp	x9, _CMD_WANT_SKB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_WARN_ON
	cbz	x0, LBB0_9
; %bb.3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _STATUS_RFKILL_OPMODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATUS_RFKILL_OPMODE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w2, [x20, #4]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RF_KILL
Lloh16:
	adrp	x8, _ERFKILL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERFKILL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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_8:
	mov	x0, x19
	mov	x1, x20
	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_gen2_send_hcmd_sync
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_pcie_gen2_enqueue_hcmd
	tbnz	w0, #31, LBB0_12
; %bb.10:
	mov	w21, #0
	b	LBB0_7
LBB0_11:
	ldr	w8, [x20]
	b	LBB0_1
LBB0_12:
	mov	x21, x0
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_iwl_get_cmd_string
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_IWL_ERR
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_SEND_IN_RFKILL,4,2         ; @CMD_SEND_IN_RFKILL
	.comm	_STATUS_RFKILL_OPMODE,4,2       ; @STATUS_RFKILL_OPMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dropping CMD 0x%x: RF KILL\n"

	.comm	_ERFKILL,4,2                    ; @ERFKILL
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Error sending %s: enqueue_hcmd failed: %d\n"

.subsections_via_symbols
