	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_cmd_send            ## -- Begin function ath10k_wmi_cmd_send
	.p2align	4, 0x90
_ath10k_wmi_cmd_send:                   ## @ath10k_wmi_cmd_send
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_might_sleep
	movq	_WMI_CMD_UNSUPPORTED@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_2
## %bb.1:
	negl	%ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ath10k_warn
	movl	%ebx, %r13d
	jmp	LBB0_10
LBB0_2:
	movl	12(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ath10k_wmi_tx_beacons_nowait
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ath10k_wmi_cmd_send_nowait
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	movq	_ATH10K_FLAG_CRASH_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %r13d
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
	xorl	%esi, %esi
	movl	(%rbx), %eax
	addl	%r13d, %eax
	setne	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_wait_event_timeout
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
LBB0_8:
	movl	(%rbx), %eax
	addl	%r13d, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ath10k_warn
	movl	4(%r15), %edi
	movq	%r15, %rsi
	callq	_queue_work
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WMI_CMD_UNSUPPORTED,8,3        ## @WMI_CMD_UNSUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi command %d is not supported by firmware\n"

	.comm	_ATH10K_FLAG_CRASH_FLUSH,4,2    ## @ATH10K_FLAG_CRASH_FLUSH
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"wmi command %d timeout, restarting hardware\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_cmd_send            ; -- Begin function ath10k_wmi_cmd_send
	.p2align	2
_ath10k_wmi_cmd_send:                   ; @ath10k_wmi_cmd_send
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_might_sleep
Lloh3:
	adrp	x8, _WMI_CMD_UNSUPPORTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_CMD_UNSUPPORTED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	neg	w21, w21
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
	b	LBB0_9
LBB0_2:
	ldr	w23, [x19, #12]
	mov	x0, x19
	bl	_ath10k_wmi_tx_beacons_nowait
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_ath10k_wmi_cmd_send_nowait
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _ATH10K_FLAG_CRASH_FLUSH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_FLAG_CRASH_FLUSH@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
Lloh14:
	adrp	x24, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x24, [x24, _EAGAIN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmn	w21, w8
	cset	w1, ne
Lloh16:
	adrp	x8, _HZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #1
	mov	x0, x23
	bl	_wait_event_timeout
	cbz	w21, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_dev_kfree_skb_any
LBB0_7:
	ldr	w8, [x24]
	cmn	w21, w8
	b.ne	LBB0_9
; %bb.8:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WMI_CMD_UNSUPPORTED,8,3        ; @WMI_CMD_UNSUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi command %d is not supported by firmware\n"

	.comm	_ATH10K_FLAG_CRASH_FLUSH,4,2    ; @ATH10K_FLAG_CRASH_FLUSH
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"wmi command %d timeout, restarting hardware\n"

.subsections_via_symbols
