	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_beacon_config            ## -- Begin function ath9k_beacon_config
	.p2align	4, 0x90
_ath9k_beacon_config:                   ## @ath9k_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	%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	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ATH_OP_BEACONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
LBB0_2:
	callq	_clear_bit
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_beacon_stop              ## TAILCALL
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	(%rax), %r13
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%r13)
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_ath9k_cache_beacon_config
	cmpq	%r14, %rbx
	jne	LBB0_5
## %bb.12:
	movq	%r15, %rdi
	callq	_ath9k_set_beacon
	movq	_ATH_OP_BEACONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_5:
	cmpq	$0, 8(%r13)
	je	LBB0_10
## %bb.6:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.8:
	cmpl	$0, (%r12)
	je	LBB0_9
LBB0_13:
	movq	_ATH_OP_BEACONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_set_beacon               ## TAILCALL
LBB0_9:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_PS_BEACON_SYNC@GOTPCREL(%rip), %rax
	movq	_PS_WAIT_FOR_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movq	_ATH_OP_BEACONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_BEACONS,4,2             ## @ATH_OP_BEACONS
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_PS_BEACON_SYNC,4,2             ## @PS_BEACON_SYNC
	.comm	_PS_WAIT_FOR_BEACON,4,2         ## @PS_WAIT_FOR_BEACON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_beacon_config            ; -- Begin function ath9k_beacon_config
	.p2align	2
_ath9k_beacon_config:                   ; @ath9k_beacon_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_ath9k_hw_common
	mov	x20, x0
	cbz	w22, LBB0_10
; %bb.1:
	cmp	x21, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.2:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x23, [x8]
	ldr	w24, [x23]
	str	w22, [x23]
	ldr	x8, [x19, #8]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_ath9k_cache_beacon_config
	cmp	x22, x25
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ath9k_set_beacon
Lloh3:
	adrp	x8, _ATH_OP_BEACONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_OP_BEACONS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_set_bit
LBB0_5:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w24, #0, #0, eq
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _ATH_OP_BEACONS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH_OP_BEACONS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath9k_set_beacon
LBB0_9:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _PS_BEACON_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PS_BEACON_SYNC@GOTPAGEOFF]
Lloh14:
	adrp	x9, _PS_WAIT_FOR_BEACON@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PS_WAIT_FOR_BEACON@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_10:
Lloh18:
	adrp	x8, _ATH_OP_BEACONS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATH_OP_BEACONS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath9k_beacon_stop
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_BEACONS,4,2             ; @ATH_OP_BEACONS
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_PS_BEACON_SYNC,4,2             ; @PS_BEACON_SYNC
	.comm	_PS_WAIT_FOR_BEACON,4,2         ; @PS_WAIT_FOR_BEACON
.subsections_via_symbols
