	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ad1816a_timer_start
_snd_ad1816a_timer_start:               ## @snd_ad1816a_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_snd_timer_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_AD1816A_INTERRUPT_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_snd_ad1816a_read
	movq	_AD1816A_TIMER_ENABLE@GOTPCREL(%rip), %r12
	testw	%ax, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	_AD1816A_TIMER_BASE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_snd_ad1816a_write
	movl	(%r15), %esi
	movzwl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_snd_ad1816a_write_mask
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD1816A_INTERRUPT_ENABLE,4,2   ## @AD1816A_INTERRUPT_ENABLE
	.comm	_AD1816A_TIMER_ENABLE,2,1       ## @AD1816A_TIMER_ENABLE
	.comm	_AD1816A_TIMER_BASE_COUNT,4,2   ## @AD1816A_TIMER_BASE_COUNT
	.no_dead_strip	_snd_ad1816a_timer_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ad1816a_timer_start
_snd_ad1816a_timer_start:               ; @snd_ad1816a_timer_start
	.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	x20, x0
	bl	_snd_timer_chip
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _AD1816A_INTERRUPT_ENABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AD1816A_INTERRUPT_ENABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_ad1816a_read
Lloh2:
	adrp	x22, _AD1816A_TIMER_ENABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AD1816A_TIMER_ENABLE@GOTPAGEOFF]
	ldrh	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _AD1816A_TIMER_BASE_COUNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AD1816A_TIMER_BASE_COUNT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldrh	w2, [x20]
	mov	x0, x19
	bl	_snd_ad1816a_write
	ldr	w1, [x21]
	ldrh	w2, [x22]
	mov	x0, x19
	mov	w3, #65535
	bl	_snd_ad1816a_write_mask
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AD1816A_INTERRUPT_ENABLE,4,2   ; @AD1816A_INTERRUPT_ENABLE
	.comm	_AD1816A_TIMER_ENABLE,2,1       ; @AD1816A_TIMER_ENABLE
	.comm	_AD1816A_TIMER_BASE_COUNT,4,2   ; @AD1816A_TIMER_BASE_COUNT
	.no_dead_strip	_snd_ad1816a_timer_start
.subsections_via_symbols
