	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_dvm_send_cmd               ## -- Begin function iwl_dvm_send_cmd
	.p2align	4, 0x90
_iwl_dvm_send_cmd:                      ## @iwl_dvm_send_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_iwl_is_rfkill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_iwl_is_ctkill
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_iwl_is_rfkill
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_WARN
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_STATUS_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	movl	4(%r14), %esi
	callq	_iwl_get_cmd_string
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
LBB0_7:
	callq	_IWL_ERR
	jmp	LBB0_8
LBB0_5:
	cmpl	$0, 8(%rbx)
	je	LBB0_6
## %bb.9:
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_11
## %bb.10:
	leaq	4(%rbx), %rdi
	callq	_lockdep_assert_held
LBB0_11:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_trans_send_cmd             ## TAILCALL
LBB0_6:
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not sending command - %s KILL\n"

L_.str.1:                               ## @.str.1
	.asciz	"RF"

L_.str.2:                               ## @.str.2
	.asciz	"CT"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_STATUS_FW_ERROR,4,2            ## @STATUS_FW_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Command %s failed: FW Error\n"

L_.str.4:                               ## @.str.4
	.asciz	"Fw not loaded - dropping CMD: %x\n"

	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_dvm_send_cmd               ; -- Begin function iwl_dvm_send_cmd
	.p2align	2
_iwl_dvm_send_cmd:                      ; @iwl_dvm_send_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_iwl_is_rfkill
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_iwl_is_ctkill
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_iwl_is_rfkill
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x2, x9, x8, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
LBB0_3:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x8, _STATUS_FW_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATUS_FW_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	bl	_iwl_get_cmd_string
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_3
LBB0_7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.8:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _CMD_ASYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CMD_ASYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	add	x0, x19, #4
	bl	_lockdep_assert_held
LBB0_10:
	ldr	w0, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_trans_send_cmd
LBB0_11:
	ldr	w2, [x20, #4]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not sending command - %s KILL\n"

l_.str.1:                               ; @.str.1
	.asciz	"RF"

l_.str.2:                               ; @.str.2
	.asciz	"CT"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_STATUS_FW_ERROR,4,2            ; @STATUS_FW_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Command %s failed: FW Error\n"

l_.str.4:                               ; @.str.4
	.asciz	"Fw not loaded - dropping CMD: %x\n"

	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
.subsections_via_symbols
