	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_beacon_config        ## -- Begin function ath9k_htc_beacon_config
	.p2align	4, 0x90
_ath9k_htc_beacon_config:               ## @ath9k_htc_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	12(%rdi), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	8(%rbx), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ath9k_htc_check_beacon_config
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	movl	$100, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%r15)
	movl	20(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	_ATH_DEFAULT_BMISS_LIMIT@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.2:
	cmpl	$131, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_ath9k_htc_beacon_config_sta
	movl	$1, (%r12)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_htc_beacon_config_ap     ## TAILCALL
LBB0_6:
	movq	%r15, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_htc_beacon_config_adhoc  ## TAILCALL
LBB0_8:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_DEFAULT_BMISS_LIMIT,4,2    ## @ATH_DEFAULT_BMISS_LIMIT
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported beaconing mode\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_beacon_config        ; -- Begin function ath9k_htc_beacon_config
	.p2align	2
_ath9k_htc_beacon_config:               ; @ath9k_htc_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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	x22, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_ath9k_htc_check_beacon_config
	cbz	w0, LBB0_5
; %bb.1:
	mov	w8, #100
	ldp	w9, w10, [x21, #16]
	cmp	w9, #0
	csel	w8, w8, w9, eq
	str	w8, [x19]
Lloh0:
	adrp	x9, _ATH_DEFAULT_BMISS_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_DEFAULT_BMISS_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w9, w8
	stp	w8, w10, [x19, #4]
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.2:
	cmp	w8, #131
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x1, x19
	bl	_ath9k_htc_beacon_config_sta
	mov	w8, #1
	str	w8, [x22]
LBB0_5:
	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
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, 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	_ath9k_htc_beacon_config_ap
LBB0_7:
	mov	x0, x19
	mov	x1, 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	_ath9k_htc_beacon_config_adhoc
LBB0_8:
Lloh3:
	adrp	x8, _CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	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	_ath_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_DEFAULT_BMISS_LIMIT,4,2    ; @ATH_DEFAULT_BMISS_LIMIT
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported beaconing mode\n"

.subsections_via_symbols
