	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_wmi_cmd                  ## -- Begin function ath9k_wmi_cmd
	.p2align	4, 0x90
_ath9k_wmi_cmd:                         ## @ath9k_wmi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	movq	_AH_UNPLUGGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%r12)
	jne	LBB0_14
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	movl	$8, %esi
	movq	%rax, %rdi
	callq	_skb_reserve
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_skb_put_data
LBB0_7:
	movq	%r14, %r13
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	24(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edx, %edx
	subl	(%rax), %edx
	jmp	LBB0_14
LBB0_10:
	movq	%rax, 16(%r13)
	movq	%rbx, 8(%r13)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_ath9k_wmi_cmd_issue
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_11
LBB0_9:
	movq	_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_wmi_cmd_to_name
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_ath_dbg
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_kfree_skb
	movl	%r14d, %edx
LBB0_14:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	16(%rbp), %rsi
	leaq	4(%r13), %rdi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	callq	_mutex_unlock
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_12:
	movq	_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_wmi_cmd_to_name
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_ath_dbg
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_kfree_skb
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_AH_UNPLUGGED,4,2               ## @AH_UNPLUGGED
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_WMI,4,2                        ## @WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for WMI command: %s\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"WMI failure for: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_wmi_cmd                  ; -- Begin function ath9k_wmi_cmd
	.p2align	2
_ath9k_wmi_cmd:                         ; @ath9k_wmi_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x6
	mov	x25, x5
	mov	x26, x4
	mov	x24, x3
	mov	x27, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ath9k_hw_common
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AH_UNPLUGGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AH_UNPLUGGED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w24, #0
	b	LBB0_12
LBB0_2:
	mov	x21, x0
	add	x0, x24, #8
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	w1, #8
	bl	_skb_reserve
	cbz	x27, LBB0_6
; %bb.4:
	cbz	x24, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x27
	mov	x2, x24
	bl	_skb_put_data
LBB0_6:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #24]
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.7:
Lloh6:
	adrp	x8, _EPROTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_10:
	stp	x25, x26, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	bl	_ath9k_wmi_cmd_issue
	mov	x24, x0
	cbz	w0, LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _WMI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_wmi_cmd_to_name
	mov	x3, x0
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_ath_dbg
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_kfree_skb
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	add	x0, x19, #4
	mov	x1, x23
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_1
LBB0_15:
Lloh16:
	adrp	x8, _WMI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WMI@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_wmi_cmd_to_name
	mov	x3, x0
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_ath_dbg
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_kfree_skb
Lloh21:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AH_UNPLUGGED,4,2               ; @AH_UNPLUGGED
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_WMI,4,2                        ; @WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for WMI command: %s\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"WMI failure for: %s\n"

.subsections_via_symbols
