	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_check_beacon_config
_ath9k_htc_check_beacon_config:         ## @ath9k_htc_check_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rbx), %edx
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$2, %edx
	jl	LBB0_5
## %bb.2:
	cmpq	%rax, (%r15)
	jne	LBB0_6
## %bb.3:
	movq	24(%rbx), %rdx
	cmpq	8(%r15), %rdx
	je	LBB0_6
## %bb.4:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_13
LBB0_5:
	testl	%edx, %edx
	je	LBB0_8
LBB0_6:
	cmpq	%rcx, (%r15)
	jne	LBB0_7
LBB0_8:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:
	cmpl	$2, 4(%rbx)
	jl	LBB0_14
## %bb.10:
	cmpq	%rax, (%r15)
	jne	LBB0_14
## %bb.11:
	movl	$0, -36(%rbp)
	movl	8(%rbx), %edi
	movq	_IEEE80211_IFACE_ITER_RESUME_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ath9k_htc_beacon_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	cmpl	$0, -36(%rbp)
	je	LBB0_14
## %bb.12:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_13
LBB0_7:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_13:
	movq	%r14, %rdi
	callq	_ath_dbg
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing beacon interval of multiple AP interfaces !\n"

L_.str.1:                               ## @.str.1
	.asciz	"HW in AP mode, cannot set STA beacon parameters\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ## @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_ath9k_htc_beacon_iter,4,2      ## @ath9k_htc_beacon_iter
L_.str.2:                               ## @.str.2
	.asciz	"Beacon already configured for a station interface\n"

	.no_dead_strip	_ath9k_htc_check_beacon_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_check_beacon_config
_ath9k_htc_check_beacon_config:         ; @ath9k_htc_check_beacon_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
	bl	_ath9k_hw_common
	mov	x19, x0
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w10, [x20]
	cmp	x8, x9
	ccmp	w10, #2, #8, eq
	b.ge	LBB0_2
; %bb.1:
	cbnz	w10, LBB0_4
	b	LBB0_5
LBB0_2:
	ldr	x10, [x21]
	cmp	x10, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x20, #24]
	ldr	x11, [x21, #8]
	cmp	x10, x11
	b.ne	LBB0_12
LBB0_4:
	ldr	x10, [x21]
	cmp	x10, x9
	b.ne	LBB0_11
LBB0_5:
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	w9, [x20, #4]
	cmp	w9, #2
	b.lt	LBB0_10
; %bb.7:
	ldr	x9, [x21]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	str	wzr, [sp, #12]
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_RESUME_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ath9k_htc_beacon_iter@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ath9k_htc_beacon_iter@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_10:
	mov	w0, #1
	b	LBB0_14
LBB0_11:
Lloh17:
	adrp	x8, _CONFIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _CONFIG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_ath_dbg
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing beacon interval of multiple AP interfaces !\n"

l_.str.1:                               ; @.str.1
	.asciz	"HW in AP mode, cannot set STA beacon parameters\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_IFACE_ITER_RESUME_ALL,4,2 ; @IEEE80211_IFACE_ITER_RESUME_ALL
	.comm	_ath9k_htc_beacon_iter,4,2      ; @ath9k_htc_beacon_iter
l_.str.2:                               ; @.str.2
	.asciz	"Beacon already configured for a station interface\n"

	.no_dead_strip	_ath9k_htc_check_beacon_config
.subsections_via_symbols
