	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_sdc_rtc_do_read_bbrtc
_hp_sdc_rtc_do_read_bbrtc:              ## @hp_sdc_rtc_do_read_bbrtc
	.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
	subq	$416, %rsp                      ## imm = 0x1A0
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_HP_SDC_ACT_DATAREG@GOTPCREL(%rip), %rcx
	movq	_HP_SDC_ACT_POSTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%rdi, %r14
	movq	_HP_SDC_ACT_DATAIN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_HP_SDC_CMD_DO_RTCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	movq	$-7, %rsi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -372(%rbp,%rsi,4)
	movl	$1, -368(%rbp,%rsi,4)
	movl	%edx, -364(%rbp,%rsi,4)
	movl	%ecx, -360(%rbp,%rsi,4)
	movl	$2, -356(%rbp,%rsi,4)
	incl	%edx
	addq	$7, %rsi
	cmpq	$84, %rsi
	jb	LBB0_1
## %bb.2:
	movq	_HP_SDC_ACT_SEMAPHORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -64(%rbp)
	movl	$91, -432(%rbp)
	leaq	-400(%rbp), %rax
	movq	%rax, -424(%rbp)
	leaq	-408(%rbp), %rdi
	movq	%rdi, -416(%rbp)
	xorl	%esi, %esi
	callq	_sema_init
	leaq	-432(%rbp), %rdi
	callq	_hp_sdc_enqueue_transaction
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	leaq	-408(%rbp), %rdi
	callq	_down_interruptible
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	-40(%rbp), %eax
	orl	-68(%rbp), %eax
	orl	-124(%rbp), %eax
	orl	-96(%rbp), %eax
	orl	-180(%rbp), %eax
	orl	-152(%rbp), %eax
	orl	-264(%rbp), %eax
	orl	-236(%rbp), %eax
	orl	-320(%rbp), %eax
	orl	-292(%rbp), %eax
	orl	-376(%rbp), %eax
	orl	-348(%rbp), %eax
	testb	$15, %al
	je	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	-68(%rbp), %eax
	movl	-40(%rbp), %ecx
	andl	$15, %eax
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, (%r14)
	movl	-124(%rbp), %eax
	movl	-96(%rbp), %ecx
	andl	$15, %eax
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 4(%r14)
	movl	-180(%rbp), %eax
	movl	-152(%rbp), %ecx
	andl	$15, %eax
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 8(%r14)
	movl	-208(%rbp), %eax
	andl	$15, %eax
	movl	%eax, 12(%r14)
	movl	-264(%rbp), %eax
	movl	-236(%rbp), %ecx
	andl	$15, %eax
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 16(%r14)
	movl	-320(%rbp), %eax
	movl	-292(%rbp), %ecx
	andl	$15, %eax
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 20(%r14)
	movl	-376(%rbp), %eax
	movl	-348(%rbp), %ecx
	andl	$15, %eax
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, 24(%r14)
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$416, %rsp                      ## imm = 0x1A0
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HP_SDC_ACT_DATAREG,4,2         ## @HP_SDC_ACT_DATAREG
	.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_DO_RTCR,4,2         ## @HP_SDC_CMD_DO_RTCR
	.comm	_HP_SDC_ACT_SEMAPHORE,4,2       ## @HP_SDC_ACT_SEMAPHORE
	.no_dead_strip	_hp_sdc_rtc_do_read_bbrtc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_sdc_rtc_do_read_bbrtc
_hp_sdc_rtc_do_read_bbrtc:              ; @hp_sdc_rtc_do_read_bbrtc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #432
	.cfi_def_cfa_offset 432
	stp	x20, x19, [sp, #400]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #416]            ; 16-byte Folded Spill
	add	x29, sp, #416
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x8, #0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HP_SDC_ACT_DATAREG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HP_SDC_ACT_DATAREG@GOTPAGEOFF]
	stur	x9, [x29, #-24]
Lloh5:
	ldr	w9, [x10]
Lloh6:
	adrp	x10, _HP_SDC_ACT_POSTCMD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HP_SDC_ACT_POSTCMD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _HP_SDC_ACT_DATAIN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HP_SDC_ACT_DATAIN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _HP_SDC_CMD_DO_RTCR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HP_SDC_CMD_DO_RTCR@GOTPAGEOFF]
	add	x11, sp, #28
Lloh14:
	ldr	w10, [x10]
	add	x11, x11, #8
	mov	w12, #1
	mov	w13, #37
	mov	w14, #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w15, w8, #2
	stp	w9, w12, [x11, #-8]
	and	w16, w15, #0xff
	mul	w16, w16, w13
	lsr	w16, w16, #8
	sub	w15, w15, w16
	and	w15, w15, #0xfe
	add	w15, w16, w15, lsr #1
	lsr	w15, w15, #2
	stp	w15, w10, [x11]
	str	w14, [x11, #8]
	add	x15, x8, #7
	add	x11, x11, #28
	cmp	x8, #84
	mov	x8, x15
	b.lo	LBB0_1
; %bb.2:
Lloh15:
	adrp	x8, _HP_SDC_ACT_SEMAPHORE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HP_SDC_ACT_SEMAPHORE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [sp, #364]
	orr	w8, w9, w8
	str	w8, [sp, #364]
	mov	w8, #91
	str	w8, [sp]
	add	x8, sp, #28
	add	x9, sp, #24
	stp	x8, x9, [sp, #8]
	add	x0, sp, #24
	mov	w1, #0
	bl	_sema_init
	mov	x0, sp
	bl	_hp_sdc_enqueue_transaction
	cbnz	x0, LBB0_4
; %bb.3:
	add	x0, sp, #24
	bl	_down_interruptible
	bl	_WARN_ON
	cbz	x0, LBB0_7
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.6:
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	add	sp, sp, #432
	ret
LBB0_7:
	ldr	w8, [sp, #360]
	ldr	w9, [sp, #388]
	orr	w8, w9, w8
	ldr	w9, [sp, #304]
	orr	w8, w8, w9
	ldr	w9, [sp, #332]
	orr	w8, w8, w9
	ldr	w9, [sp, #248]
	ldr	w10, [sp, #276]
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [sp, #164]
	ldr	w10, [sp, #192]
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [sp, #108]
	ldr	w10, [sp, #136]
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [sp, #52]
	ldr	w10, [sp, #80]
	orr	w8, w8, w9
	orr	w8, w8, w10
	tst	w8, #0xf
	b.eq	LBB0_4
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	mov	w0, #0
	ldr	w8, [sp, #360]
	and	w8, w8, #0xf
	ldr	w9, [sp, #388]
	and	w9, w9, #0xf
	mov	w10, #10
	madd	w8, w9, w10, w8
	ldr	w9, [sp, #304]
	ldr	w11, [sp, #276]
	and	w9, w9, #0xf
	ldr	w12, [sp, #332]
	and	w12, w12, #0xf
	madd	w9, w12, w10, w9
	ldr	w12, [sp, #248]
	ldr	w13, [sp, #220]
	and	w12, w12, #0xf
	and	w11, w11, #0xf
	madd	w11, w11, w10, w12
	ldr	w12, [sp, #164]
	ldr	w14, [sp, #192]
	and	w12, w12, #0xf
	and	w14, w14, #0xf
	madd	w12, w14, w10, w12
	ldr	w14, [sp, #108]
	ldr	w15, [sp, #136]
	and	w14, w14, #0xf
	and	w15, w15, #0xf
	madd	w14, w15, w10, w14
	ldr	w15, [sp, #52]
	ldr	w16, [sp, #80]
	and	w15, w15, #0xf
	and	w16, w16, #0xf
	madd	w10, w16, w10, w15
	stp	w8, w9, [x19]
	and	w8, w13, #0xf
	stp	w11, w8, [x19, #8]
	stp	w12, w14, [x19, #16]
	str	w10, [x19, #24]
	b	LBB0_5
LBB0_9:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HP_SDC_ACT_DATAREG,4,2         ; @HP_SDC_ACT_DATAREG
	.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_DO_RTCR,4,2         ; @HP_SDC_CMD_DO_RTCR
	.comm	_HP_SDC_ACT_SEMAPHORE,4,2       ; @HP_SDC_ACT_SEMAPHORE
	.no_dead_strip	_hp_sdc_rtc_do_read_bbrtc
.subsections_via_symbols
