	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_sdc_rtc_set_i8042timer
_hp_sdc_rtc_set_i8042timer:             ## @hp_sdc_rtc_set_i8042timer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_HP_SDC_ACT_PRECMD@GOTPCREL(%rip), %rax
	movq	_HP_SDC_ACT_DATAOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -32(%rbp)
	movl	$3, -24(%rbp)
	movl	$6, -48(%rbp)
	movl	(%rdi), %ecx
	movl	$-1, %eax
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	jg	LBB0_3
## %bb.1:
	movslq	4(%rdi), %rdx
	imulq	$1759218605, %rdx, %rdx         ## imm = 0x68DB8BAD
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$44, %rdx
	addl	%edi, %edx
	imull	$100, %ecx, %ecx
	addl	%edx, %ecx
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	jg	LBB0_3
## %bb.2:
	movl	%esi, -28(%rbp)
	movzbl	%cl, %eax
	movl	%eax, -20(%rbp)
	movzbl	%ch, %eax
	movl	%eax, -16(%rbp)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, -12(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_hp_sdc_enqueue_transaction
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HP_SDC_ACT_PRECMD,4,2          ## @HP_SDC_ACT_PRECMD
	.comm	_HP_SDC_ACT_DATAOUT,4,2         ## @HP_SDC_ACT_DATAOUT
	.no_dead_strip	_hp_sdc_rtc_set_i8042timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hp_sdc_rtc_set_i8042timer
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hp_sdc_rtc_set_i8042timer:             ; @hp_sdc_rtc_set_i8042timer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _HP_SDC_ACT_PRECMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HP_SDC_ACT_PRECMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HP_SDC_ACT_DATAOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HP_SDC_ACT_DATAOUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #3
	str	w8, [sp, #16]
	str	w9, [sp, #24]
	mov	w8, #6
	str	w8, [sp]
	ldr	w8, [x0]
	mov	w9, #16777215
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.1:
	ldrsw	x10, [x0, #4]
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w11
	mov	w11, #100
	madd	w8, w8, w11, w10
	cmp	w8, w9
	b.le	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	and	w9, w8, #0xff
	str	w1, [sp, #20]
	str	w9, [sp, #28]
	dup.2s	v0, w8
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	str	d0, [sp, #32]
	add	x8, sp, #16
	str	x8, [sp, #8]
	mov	x0, sp
	bl	_hp_sdc_enqueue_transaction
	cmp	x0, #0
	csetm	w0, ne
LBB0_4:
	ldur	x8, [x29, #-8]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HP_SDC_ACT_PRECMD,4,2          ; @HP_SDC_ACT_PRECMD
	.comm	_HP_SDC_ACT_DATAOUT,4,2         ; @HP_SDC_ACT_DATAOUT
	.no_dead_strip	_hp_sdc_rtc_set_i8042timer
.subsections_via_symbols
