	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_send_beacon
_ath9k_htc_send_beacon:                 ## @ath9k_htc_send_beacon
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	24(%rdi), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	16(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %r13
	movq	_ATH_OP_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_10
LBB0_2:
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	callq	_ieee80211_beacon_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	(%rax), %rax
	movl	8(%r13), %ecx
	movl	%ecx, (%rax)
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rbx
	addl	$16, (%r13)
	movq	_IEEE80211_SCTL_FRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	andl	%eax, (%rbx)
	movl	(%r13), %edi
	callq	_cpu_to_le16
	orl	%eax, (%rbx)
LBB0_5:
	movq	%r15, %rdi
	callq	_HTC_SKB_CB
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_ATH9K_HTC_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	4(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_skb_push
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movl	$12, %edx
	callq	_memcpy
	movl	4(%r12), %edi
	movq	%r15, %rsi
	callq	_htc_send
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_BSTUCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath_dbg
LBB0_8:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	callq	_ath9k_htc_csa_is_finished
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_SCANNING,4,2            ## @ATH_OP_SCANNING
	.comm	_IEEE80211_TX_CTL_ASSIGN_SEQ,4,2 ## @IEEE80211_TX_CTL_ASSIGN_SEQ
	.comm	_IEEE80211_SCTL_FRAG,4,2        ## @IEEE80211_SCTL_FRAG
	.comm	_ATH9K_HTC_BEACON,4,2           ## @ATH9K_HTC_BEACON
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BSTUCK,4,2                     ## @BSTUCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send beacon, no free TX buffer\n"

	.no_dead_strip	_ath9k_htc_send_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_send_beacon
_ath9k_htc_send_beacon:                 ; @ath9k_htc_send_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #16]
	ldr	x21, [x8, w21, sxtw #3]
	ldr	x23, [x21]
Lloh0:
	adrp	x8, _ATH_OP_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_OP_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_spin_unlock_bh
	b	LBB0_10
LBB0_2:
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_ieee80211_beacon_get
	cbz	x0, LBB0_1
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w9, [x23, #8]
	str	w9, [x8]
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x22, [x21]
	ldr	w8, [x23]
	add	w8, w8, #16
	str	w8, [x23]
Lloh6:
	adrp	x8, _IEEE80211_SCTL_FRAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_SCTL_FRAG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [x22]
	and	w8, w8, w0
	str	w8, [x22]
	ldr	w0, [x23]
	bl	_cpu_to_le16
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
LBB0_5:
	mov	x0, x21
	bl	_HTC_SKB_CB
	mov	x22, x0
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh9:
	adrp	x8, _ATH9K_HTC_BEACON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH9K_HTC_BEACON@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	stp	w9, w8, [x22, #4]
	ldr	w8, [x23, #4]
	str	w8, [sp]
	mov	x0, x21
	mov	w1, #12
	bl	_skb_push
	mov	x1, sp
	mov	w2, #12
	bl	_memcpy
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_htc_send
	cbz	w0, LBB0_9
; %bb.6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _BSTUCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BSTUCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
LBB0_8:
	mov	x0, x21
	bl	_dev_kfree_skb_any
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_ath9k_htc_csa_is_finished
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_SCANNING,4,2            ; @ATH_OP_SCANNING
	.comm	_IEEE80211_TX_CTL_ASSIGN_SEQ,4,2 ; @IEEE80211_TX_CTL_ASSIGN_SEQ
	.comm	_IEEE80211_SCTL_FRAG,4,2        ; @IEEE80211_SCTL_FRAG
	.comm	_ATH9K_HTC_BEACON,4,2           ; @ATH9K_HTC_BEACON
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BSTUCK,4,2                     ; @BSTUCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send beacon, no free TX buffer\n"

	.no_dead_strip	_ath9k_htc_send_beacon
.subsections_via_symbols
