	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_beaconq_config       ## -- Begin function ath9k_htc_beaconq_config
	.p2align	4, 0x90
_ath9k_htc_beaconq_config:              ## @ath9k_htc_beaconq_config
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ath9k_hw_get_txq_props
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	_IEEE80211_AC_BE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ath9k_hw_get_txq_props
	movl	-56(%rbp), %eax
	movl	-52(%rbp), %edx
	movl	%eax, -40(%rbp)
	cmpl	$20, 8(%r14)
	sete	%al
	movb	$2, %cl
	subb	%al, %cl
	shll	%cl, %edx
	movl	%edx, -36(%rbp)
	movq	-48(%rbp), %rax
	jmp	LBB0_5
LBB0_2:
	movq	$1, -40(%rbp)
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, -32(%rbp)
LBB0_6:
	movl	8(%rbx), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ath9k_hw_set_txq_props
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_ath9k_hw_resettxqueue
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_ath_err
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_IEEE80211_AC_BE,8,3            ## @IEEE80211_AC_BE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to update beacon queue %u!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ath9k_htc_beaconq_config
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ath9k_htc_beaconq_config
	.p2align	2
_ath9k_htc_beaconq_config:              ; @ath9k_htc_beaconq_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x20, [x0, #16]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w1, [x19, #8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_ath9k_hw_get_txq_props
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _IEEE80211_AC_BE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_AC_BE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x2, sp
	mov	x0, x20
	bl	_ath9k_hw_get_txq_props
	ldr	w8, [x20, #8]
	ldp	w9, w10, [sp]
	cmp	w8, #20
	mov	w8, #1
	cinc	w8, w8, ne
	lsl	w8, w10, w8
	stp	w9, w8, [sp, #16]
	ldr	x8, [sp, #8]
LBB0_4:
	str	x8, [sp, #24]
LBB0_5:
	ldr	w1, [x19, #8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_ath9k_hw_set_txq_props
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_ath9k_hw_resettxqueue
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_ath9k_hw_common
	ldr	w2, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath_err
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_IEEE80211_AC_BE,8,3            ; @IEEE80211_AC_BE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to update beacon queue %u!\n"

.subsections_via_symbols
