	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_init_beacon_timers    ## -- Begin function ath5k_hw_init_beacon_timers
	.p2align	4, 0x90
_ath5k_hw_init_beacon_timers:           ## @ath5k_hw_init_beacon_timers
	.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	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jae	LBB0_1
## %bb.13:
	movq	8(%r12), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setne	%bl
	movl	%ebx, %r13d
	shll	$19, %r13d
	decl	%r13d
	shll	$16, %ebx
	decl	%ebx
	movq	_AR5K_STA_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_STA_ID1_PCF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_AR5K_REG_DISABLE_BITS
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_3
## %bb.2:
	movq	_AR5K_TXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_TXCFG_ADHOC_BCN_ATIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_AR5K_REG_ENABLE_BITS
LBB0_3:
	movq	_AR5K_TUNE_DMA_BEACON_RESP@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	subl	(%rax), %ebx
	shll	$3, %ebx
	movq	_AR5K_TUNE_SW_BEACON_RESP@GOTPCREL(%rip), %rax
	movl	%r15d, %r13d
	subl	(%rax), %r13d
	shll	$3, %r13d
LBB0_4:
	leal	1(%r15), %r14d
	movl	(%r12), %eax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_6:
	movq	_AR5K_TIMER0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ath5k_hw_reg_write
LBB0_7:
	movq	_AR5K_TIMER0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_TIMER1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_TIMER2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_TIMER3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_BEACON_RESET_TSF@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_ath5k_hw_reset_tsf
LBB0_9:
	movq	_AR5K_BEACON_PERIOD@GOTPCREL(%rip), %rax
	movq	_AR5K_BEACON_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	andl	%ebx, %esi
	movq	_AR5K_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ath5k_hw_reg_write
	movq	8(%r12), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	movq	_AR5K_ISR_BMISS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_AR5K_ISR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_AR5K_PISR@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_STA_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_STA_ID1_PWR_SV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AR5K_REG_DISABLE_BITS          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_STA_ID1,4,2               ## @AR5K_STA_ID1
	.comm	_AR5K_STA_ID1_PCF,4,2           ## @AR5K_STA_ID1_PCF
	.comm	_AR5K_TXCFG,4,2                 ## @AR5K_TXCFG
	.comm	_AR5K_TXCFG_ADHOC_BCN_ATIM,4,2  ## @AR5K_TXCFG_ADHOC_BCN_ATIM
	.comm	_AR5K_TUNE_DMA_BEACON_RESP,4,2  ## @AR5K_TUNE_DMA_BEACON_RESP
	.comm	_AR5K_TUNE_SW_BEACON_RESP,4,2   ## @AR5K_TUNE_SW_BEACON_RESP
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_AR5K_TIMER0,4,2                ## @AR5K_TIMER0
	.comm	_AR5K_TIMER1,4,2                ## @AR5K_TIMER1
	.comm	_AR5K_TIMER2,4,2                ## @AR5K_TIMER2
	.comm	_AR5K_TIMER3,4,2                ## @AR5K_TIMER3
	.comm	_AR5K_BEACON_RESET_TSF,4,2      ## @AR5K_BEACON_RESET_TSF
	.comm	_AR5K_BEACON_PERIOD,4,2         ## @AR5K_BEACON_PERIOD
	.comm	_AR5K_BEACON_ENABLE,4,2         ## @AR5K_BEACON_ENABLE
	.comm	_AR5K_BEACON,4,2                ## @AR5K_BEACON
	.comm	_AR5K_ISR_BMISS,4,2             ## @AR5K_ISR_BMISS
	.comm	_AR5K_ISR,4,2                   ## @AR5K_ISR
	.comm	_AR5K_PISR,4,2                  ## @AR5K_PISR
	.comm	_AR5K_STA_ID1_PWR_SV,4,2        ## @AR5K_STA_ID1_PWR_SV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_init_beacon_timers    ; -- Begin function ath5k_hw_init_beacon_timers
	.p2align	2
_ath5k_hw_init_beacon_timers:           ; @ath5k_hw_init_beacon_timers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #128
Lloh0:
	adrp	x26, _AR5K_AR5210@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AR5K_AR5210@GOTPAGEOFF]
Lloh2:
	adrp	x25, _AR5K_STA_ID1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AR5K_STA_ID1@GOTPAGEOFF]
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	mov	w8, #524287
	csinv	w22, w8, wzr, ne
	mov	w8, #65535
	csinv	w23, w8, wzr, ne
	ldr	w1, [x25]
Lloh4:
	adrp	x8, _AR5K_STA_ID1_PCF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR5K_STA_ID1_PCF@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_AR5K_REG_DISABLE_BITS
	b	LBB0_5
LBB0_2:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _AR5K_TXCFG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR5K_TXCFG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _AR5K_TXCFG_ADHOC_BCN_ATIM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_TXCFG_ADHOC_BCN_ATIM@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_AR5K_REG_ENABLE_BITS
LBB0_4:
Lloh13:
	adrp	x8, _AR5K_TUNE_DMA_BEACON_RESP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR5K_TUNE_DMA_BEACON_RESP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	sub	w8, w21, w8
	lsl	w23, w8, #3
Lloh16:
	adrp	x8, _AR5K_TUNE_SW_BEACON_RESP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR5K_TUNE_SW_BEACON_RESP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	sub	w8, w21, w8
	lsl	w22, w8, #3
LBB0_5:
	add	w24, w21, #1
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh21:
	adrp	x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
Lloh25:
	adrp	x27, _AR5K_TIMER0@GOTPAGE
Lloh26:
	ldr	x27, [x27, _AR5K_TIMER0@GOTPAGEOFF]
	b.ne	LBB0_7
; %bb.6:
	ldr	w2, [x27]
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_hw_reg_write
LBB0_7:
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x21
	bl	_ath5k_hw_reg_write
Lloh27:
	adrp	x8, _AR5K_TIMER1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR5K_TIMER1@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_ath5k_hw_reg_write
Lloh30:
	adrp	x8, _AR5K_TIMER2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR5K_TIMER2@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_ath5k_hw_reg_write
Lloh33:
	adrp	x8, _AR5K_TIMER3@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR5K_TIMER3@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_ath5k_hw_reg_write
Lloh36:
	adrp	x8, _AR5K_BEACON_RESET_TSF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR5K_BEACON_RESET_TSF@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ath5k_hw_reset_tsf
LBB0_9:
Lloh39:
	adrp	x8, _AR5K_BEACON_PERIOD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR5K_BEACON_PERIOD@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _AR5K_BEACON_ENABLE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _AR5K_BEACON_ENABLE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w1, w8, w20
Lloh45:
	adrp	x8, _AR5K_BEACON@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR5K_BEACON@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
Lloh48:
	adrp	x10, _AR5K_ISR_BMISS@GOTPAGE
Lloh49:
	ldr	x10, [x10, _AR5K_ISR_BMISS@GOTPAGEOFF]
Lloh50:
	adrp	x11, _AR5K_ISR@GOTPAGE
Lloh51:
	ldr	x11, [x11, _AR5K_ISR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x10]
Lloh53:
	adrp	x10, _AR5K_PISR@GOTPAGE
Lloh54:
	ldr	x10, [x10, _AR5K_PISR@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	ldr	w1, [x25]
Lloh55:
	adrp	x8, _AR5K_STA_ID1_PWR_SV@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AR5K_STA_ID1_PWR_SV@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AR5K_REG_DISABLE_BITS
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_STA_ID1,4,2               ; @AR5K_STA_ID1
	.comm	_AR5K_STA_ID1_PCF,4,2           ; @AR5K_STA_ID1_PCF
	.comm	_AR5K_TXCFG,4,2                 ; @AR5K_TXCFG
	.comm	_AR5K_TXCFG_ADHOC_BCN_ATIM,4,2  ; @AR5K_TXCFG_ADHOC_BCN_ATIM
	.comm	_AR5K_TUNE_DMA_BEACON_RESP,4,2  ; @AR5K_TUNE_DMA_BEACON_RESP
	.comm	_AR5K_TUNE_SW_BEACON_RESP,4,2   ; @AR5K_TUNE_SW_BEACON_RESP
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_AR5K_TIMER0,4,2                ; @AR5K_TIMER0
	.comm	_AR5K_TIMER1,4,2                ; @AR5K_TIMER1
	.comm	_AR5K_TIMER2,4,2                ; @AR5K_TIMER2
	.comm	_AR5K_TIMER3,4,2                ; @AR5K_TIMER3
	.comm	_AR5K_BEACON_RESET_TSF,4,2      ; @AR5K_BEACON_RESET_TSF
	.comm	_AR5K_BEACON_PERIOD,4,2         ; @AR5K_BEACON_PERIOD
	.comm	_AR5K_BEACON_ENABLE,4,2         ; @AR5K_BEACON_ENABLE
	.comm	_AR5K_BEACON,4,2                ; @AR5K_BEACON
	.comm	_AR5K_ISR_BMISS,4,2             ; @AR5K_ISR_BMISS
	.comm	_AR5K_ISR,4,2                   ; @AR5K_ISR
	.comm	_AR5K_PISR,4,2                  ; @AR5K_PISR
	.comm	_AR5K_STA_ID1_PWR_SV,4,2        ; @AR5K_STA_ID1_PWR_SV
.subsections_via_symbols
