	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pit_timer
_init_pit_timer:                        ## @init_pit_timer
	.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	%rsi, %r14
	movl	%edi, %ebx
	movq	_i8253_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.1:
	cmpl	$132, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$131, %ebx
	jne	LBB0_8
## %bb.4:
	movq	_PIT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$52, %edi
	callq	_outb_pit
	movq	_LATCH@GOTPCREL(%rip), %rbx
	movzbl	(%rbx), %edi
	movq	_PIT_CH0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_outb_pit
	movl	(%rbx), %ebx
	sarl	$8, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	$-131, %eax
	addl	(%r14), %eax
	cmpl	$1, %eax
	ja	LBB0_8
## %bb.6:
	movq	_PIT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_outb_pit
	movq	_PIT_CH0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_outb_pit
	jmp	LBB0_7
LBB0_2:
	movl	$56, %ebx
	movq	_PIT_MODE@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_outb_pit
LBB0_8:
	movq	_i8253_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_i8253_lock,4,2                 ## @i8253_lock
	.comm	_PIT_MODE,4,2                   ## @PIT_MODE
	.comm	_LATCH,4,2                      ## @LATCH
	.comm	_PIT_CH0,4,2                    ## @PIT_CH0
	.no_dead_strip	_init_pit_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pit_timer
_init_pit_timer:                        ; @init_pit_timer
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _i8253_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _i8253_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x21, _PIT_MODE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PIT_MODE@GOTPAGEOFF]
	sub	w8, w19, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w19, #132
	b.eq	LBB0_6
; %bb.2:
	cmp	w19, #131
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [x21]
	mov	w0, #52
	bl	_outb_pit
Lloh4:
	adrp	x19, _LATCH@GOTPAGE
Lloh5:
	ldr	x19, [x19, _LATCH@GOTPAGEOFF]
	ldrb	w0, [x19]
Lloh6:
	adrp	x21, _PIT_CH0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PIT_CH0@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_outb_pit
	ldr	w8, [x19]
	asr	w0, w8, #8
	b	LBB0_7
LBB0_4:
	ldr	w8, [x20]
	sub	w8, w8, #131
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.5:
	ldr	w1, [x21]
	mov	w0, #48
	bl	_outb_pit
Lloh8:
	adrp	x21, _PIT_CH0@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PIT_CH0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_outb_pit
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #56
LBB0_7:
	ldr	w1, [x21]
	bl	_outb_pit
LBB0_8:
Lloh10:
	adrp	x0, _i8253_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _i8253_lock@GOTPAGEOFF]
	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
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_i8253_lock,4,2                 ; @i8253_lock
	.comm	_PIT_MODE,4,2                   ; @PIT_MODE
	.comm	_LATCH,4,2                      ; @LATCH
	.comm	_PIT_CH0,4,2                    ; @PIT_CH0
	.no_dead_strip	_init_pit_timer
.subsections_via_symbols
