	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_beacon_config            ## -- Begin function ath5k_beacon_config
	.p2align	4, 0x90
_ath5k_beacon_config:                   ## @ath5k_beacon_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	$0, 32(%rbx)
	movq	_AR5K_INT_BMISS@GOTPCREL(%rip), %rax
	movq	_AR5K_INT_SWBA@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath5k_beaconq_config
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_ath5k_hw_hasveol
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_ath5k_beacon_send
	jmp	LBB0_6
LBB0_5:
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ath5k_hw_stop_beacon_queue
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ath5k_beacon_update_timers
LBB0_6:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ath5k_hw_set_imr
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_INT_BMISS,4,2             ## @AR5K_INT_BMISS
	.comm	_AR5K_INT_SWBA,4,2              ## @AR5K_INT_SWBA
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_beacon_config            ; -- Begin function ath5k_beacon_config
	.p2align	2
_ath5k_beacon_config:                   ; @ath5k_beacon_config
	.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
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_bh
	str	xzr, [x20, #32]
Lloh0:
	adrp	x8, _AR5K_INT_BMISS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_INT_BMISS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _AR5K_INT_SWBA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AR5K_INT_SWBA@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_ath5k_beaconq_config
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_ath5k_hw_hasveol
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_ath5k_beacon_send
	b	LBB0_6
LBB0_4:
	ldr	w1, [x20, #20]
	mov	x0, x20
	bl	_ath5k_hw_stop_beacon_queue
	b	LBB0_6
LBB0_5:
	mov	w1, #-1
	bl	_ath5k_beacon_update_timers
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_ath5k_hw_set_imr
	mov	x0, x19
	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
	b	_spin_unlock_bh
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_INT_BMISS,4,2             ; @AR5K_INT_BMISS
	.comm	_AR5K_INT_SWBA,4,2              ; @AR5K_INT_SWBA
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
.subsections_via_symbols
