	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_sdc_rtc_read_i8042timer
_hp_sdc_rtc_read_i8042timer:            ## @hp_sdc_rtc_read_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	$144, %rsp
                                        ## kill: def $esi killed $esi def $rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_HP_SDC_ACT_PRECMD@GOTPCREL(%rip), %rcx
	movq	_HP_SDC_ACT_POSTCMD@GOTPCREL(%rip), %rdx
	movq	_HP_SDC_ACT_DATAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movl	%ecx, -112(%rbp)
	movq	_HP_SDC_CMD_READ_T1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -104(%rbp)
	movq	$2, -100(%rbp)
	movl	$0, -92(%rbp)
	movl	%eax, -88(%rbp)
	movq	_HP_SDC_CMD_READ_T2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -84(%rbp)
	movq	$2, -80(%rbp)
	movl	$0, -72(%rbp)
	movl	%eax, -68(%rbp)
	movq	_HP_SDC_CMD_READ_T3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movq	$2, -60(%rbp)
	movl	$0, -52(%rbp)
	movl	%eax, -48(%rbp)
	movq	_HP_SDC_CMD_READ_T4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movq	$2, -40(%rbp)
	movl	$0, -32(%rbp)
	movl	%eax, -28(%rbp)
	movq	_HP_SDC_CMD_READ_T5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$2, -20(%rbp)
	movl	$0, -12(%rbp)
	leal	(%rsi,%rsi,4), %eax
	movl	%eax, -136(%rbp)
	movl	%edi, -108(%rbp)
	movq	_HP_SDC_ACT_SEMAPHORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltq
	orl	%ecx, -128(%rbp,%rax,4)
	leaq	-112(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	_i8042tregs@GOTPCREL(%rip), %rdi
	movq	%rdi, -120(%rbp)
	callq	_down_interruptible
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	-136(%rbp), %rdi
	callq	_hp_sdc_enqueue_transaction
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_i8042tregs@GOTPCREL(%rip), %rdi
	callq	_up
	jmp	LBB0_4
LBB0_2:
	movq	_i8042tregs@GOTPCREL(%rip), %rdi
	callq	_down_interruptible
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	$-1, %eax
	addq	$144, %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_POSTCMD,4,2         ## @HP_SDC_ACT_POSTCMD
	.comm	_HP_SDC_ACT_DATAIN,4,2          ## @HP_SDC_ACT_DATAIN
	.comm	_HP_SDC_CMD_READ_T1,4,2         ## @HP_SDC_CMD_READ_T1
	.comm	_HP_SDC_CMD_READ_T2,4,2         ## @HP_SDC_CMD_READ_T2
	.comm	_HP_SDC_CMD_READ_T3,4,2         ## @HP_SDC_CMD_READ_T3
	.comm	_HP_SDC_CMD_READ_T4,4,2         ## @HP_SDC_CMD_READ_T4
	.comm	_HP_SDC_CMD_READ_T5,4,2         ## @HP_SDC_CMD_READ_T5
	.comm	_HP_SDC_ACT_SEMAPHORE,4,2       ## @HP_SDC_ACT_SEMAPHORE
	.comm	_i8042tregs,4,2                 ## @i8042tregs
	.no_dead_strip	_hp_sdc_rtc_read_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_read_i8042timer
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hp_sdc_rtc_read_i8042timer:            ; @hp_sdc_rtc_read_i8042timer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w1 killed $w1 def $x1
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:
	adrp	x9, _HP_SDC_ACT_POSTCMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HP_SDC_ACT_POSTCMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _HP_SDC_ACT_DATAIN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HP_SDC_ACT_DATAIN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
Lloh12:
	adrp	x10, _HP_SDC_CMD_READ_T1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HP_SDC_CMD_READ_T1@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	str	w10, [sp, #40]
Lloh15:
	adrp	x10, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #44]
	stp	wzr, w9, [sp, #52]
Lloh17:
	adrp	x10, _HP_SDC_CMD_READ_T2@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HP_SDC_CMD_READ_T2@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	str	w10, [sp, #60]
	str	d0, [sp, #64]
Lloh20:
	adrp	x10, _HP_SDC_CMD_READ_T3@GOTPAGE
Lloh21:
	ldr	x10, [x10, _HP_SDC_CMD_READ_T3@GOTPAGEOFF]
	stp	wzr, w9, [sp, #72]
Lloh22:
	ldr	w10, [x10]
	str	w10, [sp, #80]
	stur	d0, [sp, #84]
	stp	wzr, w9, [sp, #92]
Lloh23:
	adrp	x10, _HP_SDC_CMD_READ_T4@GOTPAGE
Lloh24:
	ldr	x10, [x10, _HP_SDC_CMD_READ_T4@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	str	w10, [sp, #100]
	str	d0, [sp, #104]
	stp	wzr, w9, [sp, #112]
Lloh26:
	adrp	x9, _HP_SDC_CMD_READ_T5@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HP_SDC_CMD_READ_T5@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	str	w9, [sp, #120]
	stur	d0, [sp, #124]
	str	wzr, [sp, #132]
	sxtw	x9, w1
	add	x9, x9, w1, sxtw #2
	str	w9, [sp, #8]
	stp	w8, w0, [sp, #32]
Lloh29:
	adrp	x8, _HP_SDC_ACT_SEMAPHORE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HP_SDC_ACT_SEMAPHORE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	add	x10, sp, #32
	add	x9, x10, x9, lsl #2
	ldur	w11, [x9, #-16]
	orr	w8, w11, w8
	stur	w8, [x9, #-16]
Lloh32:
	adrp	x0, _i8042tregs@GOTPAGE
Lloh33:
	ldr	x0, [x0, _i8042tregs@GOTPAGEOFF]
	stp	x10, x0, [sp, #16]
	bl	_down_interruptible
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	bl	_hp_sdc_enqueue_transaction
	cbz	x0, LBB0_3
LBB0_2:
Lloh34:
	adrp	x0, _i8042tregs@GOTPAGE
Lloh35:
	ldr	x0, [x0, _i8042tregs@GOTPAGEOFF]
	bl	_up
	b	LBB0_4
LBB0_3:
Lloh36:
	adrp	x0, _i8042tregs@GOTPAGE
Lloh37:
	ldr	x0, [x0, _i8042tregs@GOTPAGEOFF]
	bl	_down_interruptible
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_4:
	ldur	x8, [x29, #-8]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #-1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_HP_SDC_ACT_PRECMD,4,2          ; @HP_SDC_ACT_PRECMD
	.comm	_HP_SDC_ACT_POSTCMD,4,2         ; @HP_SDC_ACT_POSTCMD
	.comm	_HP_SDC_ACT_DATAIN,4,2          ; @HP_SDC_ACT_DATAIN
	.comm	_HP_SDC_CMD_READ_T1,4,2         ; @HP_SDC_CMD_READ_T1
	.comm	_HP_SDC_CMD_READ_T2,4,2         ; @HP_SDC_CMD_READ_T2
	.comm	_HP_SDC_CMD_READ_T3,4,2         ; @HP_SDC_CMD_READ_T3
	.comm	_HP_SDC_CMD_READ_T4,4,2         ; @HP_SDC_CMD_READ_T4
	.comm	_HP_SDC_CMD_READ_T5,4,2         ; @HP_SDC_CMD_READ_T5
	.comm	_HP_SDC_ACT_SEMAPHORE,4,2       ; @HP_SDC_ACT_SEMAPHORE
	.comm	_i8042tregs,4,2                 ; @i8042tregs
	.no_dead_strip	_hp_sdc_rtc_read_i8042timer
.subsections_via_symbols
