	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_beacon_config_adhoc  ## -- Begin function ath9k_cmn_beacon_config_adhoc
	.p2align	4, 0x90
_ath9k_cmn_beacon_config_adhoc:         ## @ath9k_cmn_beacon_config_adhoc
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_TU_TO_USEC
	movl	%eax, 4(%rbx)
	cmpq	$0, 24(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ath9k_hw_gettsf64
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ath9k_get_next_tbtt
LBB0_2:
	movl	%eax, 8(%rbx)
	cmpq	$0, 16(%rbx)
	movq	_ATH9K_INT_SWBA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_4
## %bb.3:
	orl	%ecx, (%r15)
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	notl	%ecx
	andl	%ecx, (%r15)
	leaq	L_.str.2(%rip), %rcx
LBB0_5:
	movq	_BEACON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	(%rbx), %edx
	movl	4(%rbx), %r9d
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_ath_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_INT_SWBA,4,2             ## @ATH9K_INT_SWBA
	.comm	_BEACON,4,2                     ## @BEACON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IBSS (%s) nexttbtt: %u intval: %u conf_intval: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable"

L_.str.2:                               ## @.str.2
	.asciz	"Disable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_beacon_config_adhoc  ; -- Begin function ath9k_cmn_beacon_config_adhoc
	.p2align	2
_ath9k_cmn_beacon_config_adhoc:         ; @ath9k_cmn_beacon_config_adhoc
	.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	x19, x1
	mov	x21, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	w0, [x19]
	bl	_TU_TO_USEC
	mov	x4, x0
	str	w0, [x19, #4]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ath9k_hw_gettsf64
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x21
	bl	_ath9k_get_next_tbtt
	mov	x4, x0
LBB0_2:
	str	w4, [x19, #8]
	ldr	x9, [x19, #16]
Lloh0:
	adrp	x8, _ATH9K_INT_SWBA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_INT_SWBA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
Lloh5:
	adrp	x3, l_.str.2@PAGE
Lloh6:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_5:
Lloh7:
	adrp	x8, _BEACON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BEACON@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	w6, w5, [x19]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	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	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_INT_SWBA,4,2             ; @ATH9K_INT_SWBA
	.comm	_BEACON,4,2                     ; @BEACON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IBSS (%s) nexttbtt: %u intval: %u conf_intval: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable"

l_.str.2:                               ; @.str.2
	.asciz	"Disable"

.subsections_via_symbols
