	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_gen_timer_alloc            ## -- Begin function ath_gen_timer_alloc
	.p2align	4, 0x90
_ath_gen_timer_alloc:                   ## @ath_gen_timer_alloc
	.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
	movq	_AR_FIRST_NDP_TIMER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	%r8, %rax
	ja	LBB0_10
## %bb.1:
	movq	%r8, %r15
	movq	%rdx, %r13
	movq	_ATH_MAX_GEN_TIMER@GOTPCREL(%rip), %rdx
	cmpq	%r8, (%rdx)
	jbe	LBB0_10
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rax
	jae	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testl	%eax, %eax
	je	LBB0_9
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
	movq	%r15, (%rbx)
	movq	%r12, 8(%rbx)
	movq	%r13, 16(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	_AR_FIRST_NDP_TIMER@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jae	LBB0_10
## %bb.6:
	cmpl	$0, (%r14)
	jne	LBB0_10
## %bb.7:
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_ath9k_hw_gen_timer_start_tsf2
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_FIRST_NDP_TIMER,8,3         ## @AR_FIRST_NDP_TIMER
	.comm	_ATH_MAX_GEN_TIMER,8,3          ## @ATH_MAX_GEN_TIMER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_gen_timer_alloc            ; -- Begin function ath_gen_timer_alloc
	.p2align	2
_ath_gen_timer_alloc:                   ; @ath_gen_timer_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x25, _AR_FIRST_NDP_TIMER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AR_FIRST_NDP_TIMER@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x9, _ATH_MAX_GEN_TIMER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATH_MAX_GEN_TIMER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x4
	ccmp	x9, x4, #0, ls
	b.hi	LBB0_2
LBB0_1:
	mov	x23, #0
	b	LBB0_8
LBB0_2:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	cmp	x8, x4
	b.hs	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	w0, LBB0_1
LBB0_4:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x23, x0
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	str	x23, [x8, x20, lsl #3]
	stp	x20, x24, [x23]
	stp	x22, x21, [x23, #16]
	ldr	x8, [x25]
	cmp	x8, x20
	b.hs	LBB0_8
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_ath9k_hw_gen_timer_start_tsf2
LBB0_8:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_FIRST_NDP_TIMER,8,3         ; @AR_FIRST_NDP_TIMER
	.comm	_ATH_MAX_GEN_TIMER,8,3          ; @ATH_MAX_GEN_TIMER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
