	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vatpit_init                    ## -- Begin function vatpit_init
	.p2align	4, 0x90
_vatpit_init:                           ## @vatpit_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_M_VATPIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	leaq	12(%rax), %rdi
	movq	_MTX_SPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_PIT_8254_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_FREQ2BT
	movq	(%rbx), %rdi
	addq	$16, %rdi
	movl	$1, %esi
	callq	_callout_init
	movq	(%rbx), %rdi
	movq	%rbx, 8(%rdi)
	movl	$0, (%rdi)
	addq	$40, %rdi
	movl	$1, %esi
	callq	_callout_init
	movq	(%rbx), %rdi
	movq	%rbx, 32(%rdi)
	movl	$1, 24(%rdi)
	addq	$64, %rdi
	movl	$1, %esi
	callq	_callout_init
	movq	(%rbx), %rax
	movq	%rbx, 56(%rax)
	movl	$2, 48(%rax)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VATPIT,4,2                   ## @M_VATPIT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vatpit lock"

	.comm	_MTX_SPIN,4,2                   ## @MTX_SPIN
	.comm	_PIT_8254_FREQ,4,2              ## @PIT_8254_FREQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vatpit_init                    ; -- Begin function vatpit_init
	.p2align	2
_vatpit_init:                           ; @vatpit_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _M_VATPIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_VATPIT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #24
	bl	_malloc
	mov	x20, x0
	str	x19, [x0, #16]
	add	x0, x0, #12
Lloh9:
	adrp	x8, _MTX_SPIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTX_SPIN@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh14:
	adrp	x8, _PIT_8254_FREQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PIT_8254_FREQ@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_FREQ2BT
	ldr	x8, [x20]
	add	x0, x8, #16
	mov	w19, #1
	mov	w1, #1
	bl	_callout_init
	ldr	x8, [x20]
	str	x20, [x8, #8]
	str	wzr, [x8]
	add	x0, x8, #40
	mov	w1, #1
	bl	_callout_init
	ldr	x8, [x20]
	str	x20, [x8, #32]
	str	w19, [x8, #24]
	add	x0, x8, #64
	mov	w1, #1
	bl	_callout_init
	ldr	x8, [x20]
	str	x20, [x8, #56]
	mov	w9, #2
	str	w9, [x8, #48]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VATPIT,4,2                   ; @M_VATPIT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vatpit lock"

	.comm	_MTX_SPIN,4,2                   ; @MTX_SPIN
	.comm	_PIT_8254_FREQ,4,2              ; @PIT_8254_FREQ
.subsections_via_symbols
