	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_sdc_rtc_set_rt
_hp_sdc_rtc_set_rt:                     ## @hp_sdc_rtc_set_rt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %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, -64(%rbp)
	movq	_HP_SDC_CMD_SET_RTMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$3, -56(%rbp)
	movl	%ecx, -40(%rbp)
	movq	_HP_SDC_CMD_SET_RTD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$2, -32(%rbp)
	movl	$10, -80(%rbp)
	movslq	(%rdi), %rcx
	movslq	4(%rdi), %r8
	imulq	$1125899907, %r8, %rdx          ## imm = 0x431BDE83
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$32, %rdx
	sarl	$18, %edx
	addl	%eax, %edx
	imulq	$-1037155065, %rcx, %rax        ## imm = 0xC22E4507
	shrq	$32, %rax
	addl	%ecx, %eax
	movl	%eax, %edi
	shrl	$31, %edi
	sarl	$16, %eax
	addl	%edi, %eax
	imull	$86400, %eax, %edi              ## imm = 0x15180
	movl	%ecx, %esi
	subl	%edi, %esi
	addl	%edx, %esi
	movslq	%esi, %rdx
	imulq	$-1037155065, %rdx, %rsi        ## imm = 0xC22E4507
	shrq	$32, %rsi
	addl	%esi, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$16, %edx
	addl	%esi, %edx
	addl	%eax, %edx
	movl	$-1, %eax
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	ja	LBB0_4
## %bb.1:
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	jg	LBB0_4
## %bb.2:
	movslq	%r8d, %rsi
	imulq	$1759218605, %rsi, %rsi         ## imm = 0x68DB8BAD
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$44, %rsi
	addl	%edi, %esi
	imull	$100, %ecx, %ecx
	addl	%esi, %ecx
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	jg	LBB0_4
## %bb.3:
	movzbl	%cl, %eax
	movl	%eax, -52(%rbp)
	movzbl	%ch, %eax
	movl	%eax, -48(%rbp)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, -44(%rbp)
	movzbl	%dl, %eax
	movl	%eax, -28(%rbp)
	shrl	$8, %edx
	movl	%edx, -24(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_hp_sdc_enqueue_transaction
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_6:
	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
	.comm	_HP_SDC_CMD_SET_RTMS,4,2        ## @HP_SDC_CMD_SET_RTMS
	.comm	_HP_SDC_CMD_SET_RTD,4,2         ## @HP_SDC_CMD_SET_RTD
	.no_dead_strip	_hp_sdc_rtc_set_rt
.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_rt
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hp_sdc_rtc_set_rt:                     ; @hp_sdc_rtc_set_rt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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]
Lloh3:
	adrp	x9, _HP_SDC_ACT_PRECMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HP_SDC_ACT_PRECMD@GOTPAGEOFF]
	stur	x8, [x29, #-8]
Lloh5:
	ldr	w8, [x9]
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
Lloh9:
	adrp	x9, _HP_SDC_CMD_SET_RTMS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HP_SDC_CMD_SET_RTMS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #28]
	mov	w9, #3
	str	w9, [sp, #36]
	str	w8, [sp, #52]
Lloh12:
	adrp	x8, _HP_SDC_CMD_SET_RTD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HP_SDC_CMD_SET_RTD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #2
	stp	w8, w9, [sp, #56]
	mov	w8, #10
	str	w8, [sp, #8]
	mov	w9, #17671
	movk	w9, #49710, lsl #16
	ldp	w8, w10, [x0]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	smull	x11, w8, w9
	lsr	x11, x11, #32
	add	w11, w11, w8
	asr	w12, w11, #16
	add	w11, w12, w11, lsr #31
	mov	w12, #56963
	movk	w12, #17179, lsl #16
	mul	x12, x10, x12
	lsr	x13, x12, #32
	lsr	x12, x12, #63
	add	w12, w12, w13, asr #18
	mov	w13, #20864
	movk	w13, #1, lsl #16
	msub	w13, w11, w13, w8
	add	w12, w12, w13
	smull	x9, w12, w9
	lsr	x9, x9, #32
	add	w9, w9, w12
	asr	w12, w9, #16
	add	w9, w12, w9, lsr #31
	add	w9, w9, w11
	lsr	w11, w9, #16
	cmp	w11, #0
	mov	w11, #16777215
	ccmp	w8, w11, #0, eq
	b.gt	LBB0_2
; %bb.1:
	mov	w12, #35757
	movk	w12, #26843, lsl #16
	smull	x10, w10, w12
	lsr	x12, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w12
	mov	w12, #100
	madd	w8, w8, w12, w10
	cmp	w8, w11
	b.le	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	and	w10, w8, #0xff
	str	w10, [sp, #40]
	dup.2s	v0, w8
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [sp, #44]
	and	w8, w9, #0xff
	lsr	w9, w9, #8
	stp	w8, w9, [sp, #64]
	add	x8, sp, #28
	str	x8, [sp, #16]
	add	x0, sp, #8
	bl	_hp_sdc_enqueue_transaction
	cmp	x0, #0
	csetm	w0, ne
LBB0_4:
	ldur	x8, [x29, #-8]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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
	.comm	_HP_SDC_CMD_SET_RTMS,4,2        ; @HP_SDC_CMD_SET_RTMS
	.comm	_HP_SDC_CMD_SET_RTD,4,2         ; @HP_SDC_CMD_SET_RTD
	.no_dead_strip	_hp_sdc_rtc_set_rt
.subsections_via_symbols
