	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_mgmt_tx
_ath6kl_mgmt_tx:                        ## @ath6kl_mgmt_tx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_ath6kl_vif_from_wdev
	movq	%rax, %r15
	movl	28(%rax), %edi
	callq	_ath6kl_priv
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movq	16(%rbx), %r12
	movq	(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r14d
	movl	12(%rbx), %ebx
	testq	%rax, %rax
	cmoveq	%r15, %rax
	movq	(%rax), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	_AP_NETWORK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.3:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$24, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r12), %edi
	callq	_ieee80211_is_probe_resp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ath6kl_is_p2p_go_ssid
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_send_go_probe_resp      ## TAILCALL
LBB0_6:
	movl	20(%r15), %eax
	leal	1(%rax), %ecx
	testl	%eax, %eax
	movl	$2, %edx
	cmovnel	%ecx, %edx
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%edx, 20(%r15)
	movq	%r14, %rdx
	movslq	%ecx, %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	8(%r15), %rax
	cmpq	(%rdx), %rax
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_8
## %bb.7:
	leaq	-92(%rbp), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	%r12, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_ath6kl_mgmt_powersave_ap
	addq	$16, %rsp
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
LBB0_8:
	movl	(%r13), %edi
	movl	16(%r15), %esi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	movq	%r12, %r9
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_ath6kl_wmi_send_mgmt_cmd
	addq	$16, %rsp
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AP_NETWORK,8,3                 ## @AP_NETWORK
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.no_dead_strip	_ath6kl_mgmt_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_mgmt_tx
_ath6kl_mgmt_tx:                        ; @ath6kl_mgmt_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x3
	mov	x22, x2
	mov	x0, x1
	bl	_ath6kl_vif_from_wdev
	mov	x20, x0
	ldr	w0, [x0, #28]
	bl	_ath6kl_priv
	mov	x25, x0
	ldp	x21, x8, [x22, #16]
	ldr	x19, [x22]
	ldp	w24, w22, [x22, #8]
	cmp	x8, #0
	csel	x8, x20, x8, eq
	ldr	x23, [x8]
	cmp	x23, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x28, _AP_NETWORK@GOTPAGE
Lloh4:
	ldr	x28, [x28, _AP_NETWORK@GOTPAGEOFF]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x21]
	bl	_ieee80211_is_probe_resp
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_ath6kl_is_p2p_go_ssid
	cbz	x0, LBB0_7
; %bb.6:
	str	xzr, [x26]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ath6kl_send_go_probe_resp
LBB0_7:
	ldr	w8, [x20, #20]
	cmp	w8, #0
	mov	w9, #2
	csinc	w9, w9, w8, eq
	csinc	w8, w8, wzr, ne
	str	w9, [x20, #20]
	sxtw	x27, w8
	str	x27, [x26]
	ldr	x8, [x20, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	add	x6, sp, #12
	mov	x0, x20
	mov	x1, x27
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x19
	mov	x7, x22
	bl	_ath6kl_mgmt_powersave_ap
	cbz	w0, LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	ldr	w0, [x25]
	ldr	w1, [x20, #16]
	mov	x2, x27
	mov	x3, x23
	mov	x4, x24
	mov	x5, x21
	mov	x6, x19
	mov	x7, x22
	bl	_ath6kl_wmi_send_mgmt_cmd
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AP_NETWORK,8,3                 ; @AP_NETWORK
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.no_dead_strip	_ath6kl_mgmt_tx
.subsections_via_symbols
