	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_gen_timer_start       ## -- Begin function ath9k_hw_gen_timer_start
	.p2align	4, 0x90
_ath9k_hw_gen_timer_start:              ## @ath9k_hw_gen_timer_start
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	callq	_BIT
	orl	%eax, 4(%r14)
	movq	_gen_tmr_configuration@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movl	12(%rax,%rcx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_REG_WRITE
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_REG_WRITE
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movl	4(%rax,%rcx), %esi
	movq	%r14, %rdi
	callq	_REG_SET_BIT
	movq	%r14, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	(%rbx), %rcx
	movq	_AR_GEN_TIMER_BANK_1_LEN@GOTPCREL(%rip), %rax
	movl	$1, %edx
	shll	%cl, %edx
	movq	_AR_MAC_PCU_GEN_TIMER_TSF_SEL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	(%rax), %rcx
	jae	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_REG_CLR_BIT
LBB0_5:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
LBB0_7:
	movl	(%rbx), %edi
	callq	_AR_GENTMR_BIT
	movq	_AR_IMR_S5_GENTIMER_TRIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_SM
	movl	%eax, %r15d
	cmpq	$0, 8(%rbx)
	je	LBB0_10
LBB0_9:
	movl	(%rbx), %edi
	callq	_AR_GENTMR_BIT
	movq	_AR_IMR_S5_GENTIMER_THRESH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_SM
	orl	%eax, %r15d
LBB0_10:
	movq	_AR_IMR_S5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_REG_SET_BIT
	movl	(%r14), %eax
	movq	_ATH9K_INT_GENTIMER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_REG_SET_BIT
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
LBB0_6:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	jne	LBB0_9
	jmp	LBB0_10
LBB0_12:
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_set_interrupts        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gen_tmr_configuration,8,3      ## @gen_tmr_configuration
	.comm	_AR_GEN_TIMER_BANK_1_LEN,8,3    ## @AR_GEN_TIMER_BANK_1_LEN
	.comm	_AR_MAC_PCU_GEN_TIMER_TSF_SEL,4,2 ## @AR_MAC_PCU_GEN_TIMER_TSF_SEL
	.comm	_AR_IMR_S5_GENTIMER_TRIG,4,2    ## @AR_IMR_S5_GENTIMER_TRIG
	.comm	_AR_IMR_S5_GENTIMER_THRESH,4,2  ## @AR_IMR_S5_GENTIMER_THRESH
	.comm	_AR_IMR_S5,4,2                  ## @AR_IMR_S5
	.comm	_ATH9K_INT_GENTIMER,4,2         ## @ATH9K_INT_GENTIMER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_gen_timer_start       ; -- Begin function ath9k_hw_gen_timer_start
	.p2align	2
_ath9k_hw_gen_timer_start:              ; @ath9k_hw_gen_timer_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1]
	bl	_BIT
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
Lloh0:
	adrp	x23, _gen_tmr_configuration@GOTPAGE
Lloh1:
	ldr	x23, [x23, _gen_tmr_configuration@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	w1, [x8, #12]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WRITE
	ldr	x8, [x23]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WRITE
	ldr	x8, [x23]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	mov	x0, x19
	bl	_AR_SREV_9462
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _AR_GEN_TIMER_BANK_1_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_GEN_TIMER_BANK_1_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _AR_MAC_PCU_GEN_TIMER_TSF_SEL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AR_MAC_PCU_GEN_TIMER_TSF_SEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x10]
	mov	w10, #1
	lsl	w2, w10, w8
	mov	x0, x19
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.3:
	bl	_REG_CLR_BIT
LBB0_4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
LBB0_5:
	ldr	w0, [x20]
	bl	_AR_GENTMR_BIT
Lloh8:
	adrp	x8, _AR_IMR_S5_GENTIMER_TRIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_IMR_S5_GENTIMER_TRIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_SM
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w0, [x20]
	bl	_AR_GENTMR_BIT
Lloh11:
	adrp	x8, _AR_IMR_S5_GENTIMER_THRESH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_IMR_S5_GENTIMER_THRESH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w0, w21
LBB0_7:
Lloh14:
	adrp	x8, _AR_IMR_S5@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_IMR_S5@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_SET_BIT
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _ATH9K_INT_GENTIMER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATH9K_INT_GENTIMER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	_REG_SET_BIT
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
LBB0_10:
	mov	w21, #0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_11:
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath9k_hw_set_interrupts
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_gen_tmr_configuration,8,3      ; @gen_tmr_configuration
	.comm	_AR_GEN_TIMER_BANK_1_LEN,8,3    ; @AR_GEN_TIMER_BANK_1_LEN
	.comm	_AR_MAC_PCU_GEN_TIMER_TSF_SEL,4,2 ; @AR_MAC_PCU_GEN_TIMER_TSF_SEL
	.comm	_AR_IMR_S5_GENTIMER_TRIG,4,2    ; @AR_IMR_S5_GENTIMER_TRIG
	.comm	_AR_IMR_S5_GENTIMER_THRESH,4,2  ; @AR_IMR_S5_GENTIMER_THRESH
	.comm	_AR_IMR_S5,4,2                  ; @AR_IMR_S5
	.comm	_ATH9K_INT_GENTIMER,4,2         ; @ATH9K_INT_GENTIMER
.subsections_via_symbols
