	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_tm_cmd_wmi
_ath10k_tm_cmd_wmi:                     ## @ath10k_tm_cmd_wmi
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_ATH10K_STATE_UTF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_ATH10K_TM_ATTR_DATA@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	_ATH10K_TM_ATTR_WMI_CMDID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_4
## %bb.6:
	callq	_nla_data
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_len
	movl	%eax, %r12d
	movq	_ATH10K_TM_ATTR_WMI_CMDID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_nla_get_u32
	movq	_ATH10K_DBG_TESTMODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	movq	%r13, %r8
	movl	%r12d, %r9d
	callq	_ath10k_dbg
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r8
	movl	%r12d, %r13d
	movl	%r12d, %r9d
	callq	_ath10k_dbg_dump
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ath10k_wmi_cmd_send
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_STATE_UTF,8,3           ## @ATH10K_STATE_UTF
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_ATH10K_TM_ATTR_DATA,8,3        ## @ATH10K_TM_ATTR_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH10K_TM_ATTR_WMI_CMDID,8,3   ## @ATH10K_TM_ATTR_WMI_CMDID
	.comm	_ATH10K_DBG_TESTMODE,4,2        ## @ATH10K_DBG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testmode cmd wmi cmd_id %d buf %pK buf_len %d\n"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"failed to transmit wmi command (testmode): %d\n"

	.no_dead_strip	_ath10k_tm_cmd_wmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_tm_cmd_wmi
_ath10k_tm_cmd_wmi:                     ; @ath10k_tm_cmd_wmi
	.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	x23, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ATH10K_STATE_UTF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH10K_STATE_UTF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x22, _ATH10K_TM_ATTR_DATA@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ATH10K_TM_ATTR_DATA@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x23, x8, lsl #3]
	cbz	x0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x24, _ATH10K_TM_ATTR_WMI_CMDID@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ATH10K_TM_ATTR_WMI_CMDID@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x23, x8, lsl #3]
	cbz	x8, LBB0_7
; %bb.3:
	bl	_nla_data
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x0, [x23, x8, lsl #3]
	bl	_nla_len
	mov	x22, x0
	ldr	x8, [x24]
	ldr	x0, [x23, x8, lsl #3]
	bl	_nla_get_u32
	mov	x23, x0
Lloh7:
	adrp	x24, _ATH10K_DBG_TESTMODE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ATH10K_DBG_TESTMODE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	mov	x4, x21
	mov	x5, x22
	bl	_ath10k_dbg
	ldr	w1, [x24]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x4, x21
	mov	x5, x22
	bl	_ath10k_dbg_dump
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_8
; %bb.4:
	mov	x24, x0
	ldr	w0, [x0]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_ath10k_wmi_cmd_send
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_ath10k_warn
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_STATE_UTF,8,3           ; @ATH10K_STATE_UTF
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_ATH10K_TM_ATTR_DATA,8,3        ; @ATH10K_TM_ATTR_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH10K_TM_ATTR_WMI_CMDID,8,3   ; @ATH10K_TM_ATTR_WMI_CMDID
	.comm	_ATH10K_DBG_TESTMODE,4,2        ; @ATH10K_DBG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testmode cmd wmi cmd_id %d buf %pK buf_len %d\n"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"failed to transmit wmi command (testmode): %d\n"

	.no_dead_strip	_ath10k_tm_cmd_wmi
.subsections_via_symbols
