	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_beacon_setup
_ath5k_beacon_setup:                    ## @ath5k_beacon_setup
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	24(%rsi), %r12
	movq	%r12, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movl	40(%r15), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	%rax, (%r14)
	movq	_ATH5K_DEBUG_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rcx
	pushq	%rax
	callq	_ATH5K_DBG
	addq	$16, %rsp
	movl	40(%r15), %edi
	movq	(%r14), %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_ATH5K_ERR
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	$0, 24(%r14)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rdx
	movl	(%r15), %r13d
	movq	_AR5K_TXDESC_NOACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r15), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_ath5k_hw_hasveol
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	movq	%rax, 8(%rdx)
	movq	_AR5K_TXDESC_VEOL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	$0, 8(%rdx)
LBB0_6:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movq	_AR5K_ANTMODE_SECTOR_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movb	24(%r15), %al
	andb	$4, %al
	cmpb	$1, %al
	movl	$2, %r13d
	sbbl	$0, %r13d
LBB0_8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	%rax, (%rdx)
	movq	32(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_ieee80211_get_hdrlen_from_skb
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_AR5K_PKT_TYPE_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	44(%r15), %edi
	movl	48(%r15), %r13d
	addl	%r13d, %r13d
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_ieee80211_get_tx_rate
	movl	(%rax), %r10d
	movq	_AR5K_TXKEYIX_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	$0
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	$1
	pushq	%r10
	pushq	%r13
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
	addq	$64, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r13d
	movl	40(%r15), %edi
	movq	(%r14), %rsi
	movl	(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movl	%r13d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ATH5K_DEBUG_BEACON,4,2         ## @ATH5K_DEBUG_BEACON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb %p [data %p len %u] skbaddr %llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"beacon DMA mapping failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_AR5K_TXDESC_NOACK,4,2          ## @AR5K_TXDESC_NOACK
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_AR5K_TXDESC_VEOL,4,2           ## @AR5K_TXDESC_VEOL
	.comm	_AR5K_ANTMODE_SECTOR_AP,8,3     ## @AR5K_ANTMODE_SECTOR_AP
	.comm	_AR5K_PKT_TYPE_BEACON,4,2       ## @AR5K_PKT_TYPE_BEACON
	.comm	_AR5K_TXKEYIX_INVALID,4,2       ## @AR5K_TXKEYIX_INVALID
	.no_dead_strip	_ath5k_beacon_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_beacon_setup
_ath5k_beacon_setup:                    ; @ath5k_beacon_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #24]
	mov	x0, x20
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	w0, [x21, #40]
	ldp	w2, w1, [x20]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x6, x0
	str	x0, [x19]
Lloh3:
	adrp	x8, _ATH5K_DEBUG_BEACON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH5K_DEBUG_BEACON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w5, w4, [x20]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_ATH5K_DBG
	ldr	w0, [x21, #40]
	ldr	x1, [x19]
	bl	_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ATH5K_ERR
	mov	x0, x20
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #24]
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_2:
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x23, [x19, #16]
	ldr	w24, [x21]
Lloh13:
	adrp	x8, _AR5K_TXDESC_NOACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR5K_TXDESC_NOACK@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	ldr	x8, [x21, #8]
Lloh16:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_ath5k_hw_hasveol
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	str	x8, [x23, #8]
Lloh19:
	adrp	x8, _AR5K_TXDESC_VEOL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR5K_TXDESC_VEOL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w22, w8, w22
	b	LBB0_6
LBB0_5:
	str	xzr, [x23, #8]
LBB0_6:
	str	w22, [sp, #36]                  ; 4-byte Folded Spill
	ldr	x8, [x21, #16]
Lloh22:
	adrp	x9, _AR5K_ANTMODE_SECTOR_AP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AR5K_ANTMODE_SECTOR_AP@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldrb	w8, [x21, #24]
	tst	w8, #0x4
	mov	w8, #1
	cinc	w24, w8, ne
LBB0_8:
	ldr	x8, [x19]
	str	x8, [x23]
	ldr	x22, [x21, #32]
	ldr	w28, [x20]
	mov	x0, x20
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x25, x0
Lloh25:
	adrp	x8, _AR5K_PKT_TYPE_BEACON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AR5K_PKT_TYPE_BEACON@GOTPAGEOFF]
Lloh27:
	ldr	w26, [x8]
	ldp	w0, w8, [x21, #44]
	lsl	w27, w8, #1
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_ieee80211_get_tx_rate
	ldr	w7, [x0]
Lloh28:
	adrp	x8, _AR5K_TXKEYIX_INVALID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AR5K_TXKEYIX_INVALID@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	xzr, [sp, #16]
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	stp	w24, w9, [sp, #8]
	mov	w9, #1
	stp	w9, w8, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x28
	mov	x3, x25
	mov	w4, #0
	mov	x5, x26
	mov	x6, x27
	blr	x22
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x21, #40]
	ldr	x1, [x19]
	ldr	w2, [x20]
Lloh31:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	bl	_dma_unmap_single
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ATH5K_DEBUG_BEACON,4,2         ; @ATH5K_DEBUG_BEACON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb %p [data %p len %u] skbaddr %llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"beacon DMA mapping failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_AR5K_TXDESC_NOACK,4,2          ; @AR5K_TXDESC_NOACK
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_AR5K_TXDESC_VEOL,4,2           ; @AR5K_TXDESC_VEOL
	.comm	_AR5K_ANTMODE_SECTOR_AP,8,3     ; @AR5K_ANTMODE_SECTOR_AP
	.comm	_AR5K_PKT_TYPE_BEACON,4,2       ; @AR5K_PKT_TYPE_BEACON
	.comm	_AR5K_TXKEYIX_INVALID,4,2       ; @AR5K_TXKEYIX_INVALID
	.no_dead_strip	_ath5k_beacon_setup
.subsections_via_symbols
