	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5h1420_recv_slave_reply
_s5h1420_recv_slave_reply:              ## @s5h1420_recv_slave_reply
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movq	%r13, %rdi
	movl	$59, %esi
	callq	_s5h1420_readreg
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	$59, %esi
	movl	$130, %edx
	callq	_s5h1420_writereg
	movl	$15, %edi
	callq	_msleep
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%r15), %eax
	movl	(%r12), %edi
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	addl	%edi, %eax
	movslq	%eax, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	$59, %esi
	callq	_s5h1420_readreg
	testb	$-128, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$5, %edi
	callq	_msleep
	movl	(%r12), %edi
	jmp	LBB0_1
LBB0_4:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	movl	$73, %esi
	callq	_s5h1420_readreg
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movq	%r13, %rdi
	movl	$59, %esi
	movl	%r14d, %edx
	callq	_s5h1420_writereg
	movl	$15, %edi
	callq	_msleep
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r13, %rdi
	movl	$59, %esi
	callq	_s5h1420_readreg
	shrl	$4, %eax
	andl	$7, %eax
	movl	%eax, 4(%r15)
	je	LBB0_10
## %bb.11:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	61(%r14), %esi
	movq	%r13, %rdi
	callq	_s5h1420_readreg
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_12
## %bb.13:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.no_dead_strip	_s5h1420_recv_slave_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5h1420_recv_slave_reply
_s5h1420_recv_slave_reply:              ; @s5h1420_recv_slave_reply
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #59
	bl	_s5h1420_readreg
	mov	x20, x0
	mov	x0, x19
	mov	w1, #59
	mov	w2, #130
	bl	_s5h1420_writereg
	mov	w0, #15
	bl	_msleep
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	add	w8, w8, w0
	sxtw	x22, w8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	w1, #59
	bl	_s5h1420_readreg
	tbz	w0, #7, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #5
	bl	_msleep
	ldr	w0, [x23]
	b	LBB0_1
LBB0_4:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_time_after
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #73
	bl	_s5h1420_readreg
	cbz	w0, LBB0_10
; %bb.7:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x19
	mov	w1, #59
	mov	x2, x20
	bl	_s5h1420_writereg
	mov	w0, #15
	bl	_msleep
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	mov	w1, #59
	bl	_s5h1420_readreg
	ubfx	w22, w0, #4, #3
	str	w22, [x21, #4]
	cbz	w22, LBB0_9
; %bb.11:
	mov	x0, x19
	mov	w1, #61
	bl	_s5h1420_readreg
	ldr	x8, [x21, #8]
	str	w0, [x8]
	cmp	w22, #1
	b.eq	LBB0_17
; %bb.12:
	mov	x0, x19
	mov	w1, #62
	bl	_s5h1420_readreg
	ldr	x8, [x21, #8]
	str	w0, [x8, #4]
	cmp	w22, #2
	b.eq	LBB0_17
; %bb.13:
	mov	x0, x19
	mov	w1, #63
	bl	_s5h1420_readreg
	ldr	x8, [x21, #8]
	str	w0, [x8, #8]
	cmp	w22, #3
	b.eq	LBB0_17
; %bb.14:
	mov	x0, x19
	mov	w1, #64
	bl	_s5h1420_readreg
	ldr	x8, [x21, #8]
	str	w0, [x8, #12]
	cmp	w22, #4
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x19
	mov	w1, #65
	bl	_s5h1420_readreg
	ldr	x8, [x21, #8]
	str	w0, [x8, #16]
	cmp	w22, #5
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #66
	bl	_s5h1420_readreg
	ldr	x8, [x21, #8]
	str	w0, [x8, #20]
	cmp	w22, #6
	b.ne	LBB0_18
LBB0_17:
	mov	w22, #0
	b	LBB0_9
LBB0_18:
	mov	x0, x19
	mov	w1, #67
	bl	_s5h1420_readreg
	mov	w22, #0
	ldr	x8, [x21, #8]
	str	w0, [x8, #24]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.no_dead_strip	_s5h1420_recv_slave_reply
.subsections_via_symbols
