	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attimer_start
_attimer_start:                         ## @attimer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_device_get_softc
	movq	%rax, %rbx
	testq	%r15, %r15
	cmovneq	%r15, %r14
	movq	_MODE_PERIODIC@GOTPCREL(%rip), %rax
	cmoveq	_MODE_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%rbx)
	movq	%r14, 8(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_i8254_intsrc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movl	$1, (%rbx)
	movl	16(%rbx), %edi
	movq	8(%rbx), %r14
LBB0_2:
	movq	%r14, %rsi
	callq	_set_i8254_freq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_PERIODIC,4,2              ## @MODE_PERIODIC
	.comm	_MODE_ONESHOT,4,2               ## @MODE_ONESHOT
	.comm	_i8254_intsrc,8,3               ## @i8254_intsrc
	.no_dead_strip	_attimer_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attimer_start
_attimer_start:                         ; @attimer_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, x2
	mov	x21, x1
	ldr	w0, [x0]
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x8, _MODE_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_ONESHOT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MODE_PERIODIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MODE_PERIODIC@GOTPAGEOFF]
	cmp	x20, #0
	csel	x1, x21, x20, eq
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	str	w0, [x19, #16]
	str	x1, [x19, #8]
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _i8254_intsrc@GOTPAGE
Lloh5:
	ldr	x8, [x8, _i8254_intsrc@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
LBB0_2:
	bl	_set_i8254_freq
	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	_MODE_PERIODIC,4,2              ; @MODE_PERIODIC
	.comm	_MODE_ONESHOT,4,2               ; @MODE_ONESHOT
	.comm	_i8254_intsrc,8,3               ; @i8254_intsrc
	.no_dead_strip	_attimer_start
.subsections_via_symbols
