	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_tm_cmd                  ## -- Begin function ath6kl_tm_cmd
	.p2align	4, 0x90
_ath6kl_tm_cmd:                         ## @ath6kl_tm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_wiphy_priv
	movq	%rax, %r14
	movq	_ATH6KL_TM_ATTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_ath6kl_tm_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	callq	_nla_parse_deprecated
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_ATH6KL_TM_ATTR_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_nla_get_u32
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.4:
	movq	_ATH6KL_TM_ATTR_DATA@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.5:
	callq	_nla_data
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_len
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_ath6kl_wmi_test_cmd
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_TM_ATTR_MAX,4,2         ## @ATH6KL_TM_ATTR_MAX
	.comm	_ath6kl_tm_policy,4,2           ## @ath6kl_tm_policy
	.comm	_ATH6KL_TM_ATTR_CMD,8,3         ## @ATH6KL_TM_ATTR_CMD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_TM_ATTR_DATA,8,3        ## @ATH6KL_TM_ATTR_DATA
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_tm_cmd                  ; -- Begin function ath6kl_tm_cmd
	.p2align	2
_ath6kl_tm_cmd:                         ; @ath6kl_tm_cmd
	.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
	sub	sp, sp, #16
	mov	x21, x3
	mov	x22, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_wiphy_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _ATH6KL_TM_ATTR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH6KL_TM_ATTR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _ath6kl_tm_policy@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ath6kl_tm_policy@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x5, #0
	bl	_nla_parse_deprecated
	cbnz	w0, LBB0_8
; %bb.1:
Lloh11:
	adrp	x8, _ATH6KL_TM_ATTR_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH6KL_TM_ATTR_CMD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_nla_get_u32
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.3:
Lloh14:
	adrp	x22, _ATH6KL_TM_ATTR_DATA@GOTPAGE
Lloh15:
	ldr	x22, [x22, _ATH6KL_TM_ATTR_DATA@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_nla_data
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_len
	mov	x2, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ath6kl_wmi_test_cmd
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_TM_ATTR_MAX,4,2         ; @ATH6KL_TM_ATTR_MAX
	.comm	_ath6kl_tm_policy,4,2           ; @ath6kl_tm_policy
	.comm	_ATH6KL_TM_ATTR_CMD,8,3         ; @ATH6KL_TM_ATTR_CMD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_TM_ATTR_DATA,8,3        ; @ATH6KL_TM_ATTR_DATA
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
