	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_beacon_init
_ath9k_htc_beacon_init:                 ## @ath9k_htc_beacon_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movl	(%rsi), %r12d
	movq	_DEFAULT_SWBA_RESPONSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_TU_TO_USEC
	cmpl	%eax, %r12d
	jge	LBB0_2
## %bb.1:
	movq	_MIN_SWBA_RESPONSE@GOTPCREL(%rip), %rbx
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, 4(%r13)
	movq	_WMI_DISABLE_INTR_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_ath9k_hw_reset_tsf
LBB0_4:
	movq	%r14, %rdi
	callq	_ath9k_htc_beaconq_config
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r13, %rdi
	callq	_ath9k_hw_beaconinit
	movq	$0, (%r14)
	movl	(%r13), %edi
	callq	_cpu_to_be32
	movl	%eax, -48(%rbp)
	movq	_WMI_ENABLE_INTR_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_WMI_CMD_BUF
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_SWBA_RESPONSE,4,2      ## @DEFAULT_SWBA_RESPONSE
	.comm	_MIN_SWBA_RESPONSE,4,2          ## @MIN_SWBA_RESPONSE
	.comm	_WMI_DISABLE_INTR_CMDID,4,2     ## @WMI_DISABLE_INTR_CMDID
	.comm	_WMI_ENABLE_INTR_CMDID,4,2      ## @WMI_ENABLE_INTR_CMDID
	.no_dead_strip	_ath9k_htc_beacon_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_beacon_init
_ath9k_htc_beacon_init:                 ; @ath9k_htc_beacon_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w23, [x1]
Lloh0:
	adrp	x24, _DEFAULT_SWBA_RESPONSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DEFAULT_SWBA_RESPONSE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_TU_TO_USEC
Lloh2:
	adrp	x8, _MIN_SWBA_RESPONSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIN_SWBA_RESPONSE@GOTPAGEOFF]
	cmp	w23, w0
	csel	x8, x8, x24, lt
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh4:
	adrp	x8, _WMI_DISABLE_INTR_CMDID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WMI_DISABLE_INTR_CMDID@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_WMI_CMD
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath9k_hw_reset_tsf
LBB0_2:
	mov	x0, x20
	bl	_ath9k_htc_beaconq_config
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_ath9k_hw_beaconinit
	str	xzr, [x20]
	ldr	w0, [x19]
	bl	_cpu_to_be32
	str	w0, [sp, #12]
Lloh7:
	adrp	x8, _WMI_ENABLE_INTR_CMDID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WMI_ENABLE_INTR_CMDID@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_WMI_CMD_BUF
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_SWBA_RESPONSE,4,2      ; @DEFAULT_SWBA_RESPONSE
	.comm	_MIN_SWBA_RESPONSE,4,2          ; @MIN_SWBA_RESPONSE
	.comm	_WMI_DISABLE_INTR_CMDID,4,2     ; @WMI_DISABLE_INTR_CMDID
	.comm	_WMI_ENABLE_INTR_CMDID,4,2      ; @WMI_ENABLE_INTR_CMDID
	.no_dead_strip	_ath9k_htc_beacon_init
.subsections_via_symbols
