	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_pit_timer
_create_pit_timer:                      ## @create_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	(%rdi), %rbx
	callq	_irqchip_in_kernel
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %r14
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KVM_PIT_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_muldiv64
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_hrtimer_cancel
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_cancel_work_sync
	movl	%r12d, 40(%rbx)
	movl	%r15d, (%rbx)
	movq	_pit_timer_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_kpit_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	20(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_ktime_add_ns
	movq	_HRTIMER_MODE_ABS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hrtimer_start                  ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_KVM_PIT_FREQ,4,2               ## @KVM_PIT_FREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pit: create pit timer, interval is %llu nsec\n"

	.comm	_pit_timer_fn,4,2               ## @pit_timer_fn
	.comm	_kpit_ops,4,2                   ## @kpit_ops
	.comm	_HRTIMER_MODE_ABS,4,2           ## @HRTIMER_MODE_ABS
	.no_dead_strip	_create_pit_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_pit_timer
_create_pit_timer:                      ; @create_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, x2
	mov	x21, x1
	ldr	x22, [x0]
	bl	_irqchip_in_kernel
	cbz	w0, LBB0_2
; %bb.1:
	add	x19, x22, #16
Lloh0:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _KVM_PIT_FREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVM_PIT_FREQ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_muldiv64
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	mov	x0, x19
	bl	_hrtimer_cancel
	ldr	x8, [x22, #8]
	add	x0, x8, #4
	bl	_cancel_work_sync
	str	w21, [x22, #40]
	str	w20, [x22]
Lloh8:
	adrp	x8, _pit_timer_fn@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pit_timer_fn@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _kpit_ops@GOTPAGE
Lloh12:
	ldr	x9, [x9, _kpit_ops@GOTPAGEOFF]
	str	w8, [x22, #16]
	str	x9, [x22, #32]
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	str	w8, [x22, #24]
	add	x0, x22, #20
	mov	w1, #0
	bl	_atomic_set
	mov	w8, #1
	str	w8, [x22, #4]
	bl	_ktime_get
	mov	x1, x21
	bl	_ktime_add_ns
	mov	x1, x0
Lloh13:
	adrp	x8, _HRTIMER_MODE_ABS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HRTIMER_MODE_ABS@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	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	_hrtimer_start
LBB0_2:
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_KVM_PIT_FREQ,4,2               ; @KVM_PIT_FREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pit: create pit timer, interval is %llu nsec\n"

	.comm	_pit_timer_fn,4,2               ; @pit_timer_fn
	.comm	_kpit_ops,4,2                   ; @kpit_ops
	.comm	_HRTIMER_MODE_ABS,4,2           ; @HRTIMER_MODE_ABS
	.no_dead_strip	_create_pit_timer
.subsections_via_symbols
