	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh7760_i2c_mrecv
_sh7760_i2c_mrecv:                      ## @sh7760_i2c_mrecv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IDF_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rdi)
	movq	_I2CSAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$254, %edx
	callq	_OUT32
	movq	_I2CMAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %edx
	incl	%edx
	movq	%r14, %rdi
	callq	_OUT32
	movq	(%r14), %rax
	movl	4(%rax), %eax
	movq	_FIFO_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movq	_I2CFCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_FCR_RFRST@GOTPCREL(%rip), %rax
	movq	_FCR_TFRST@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_OUT32
	movl	(%r15), %esi
	shll	$4, %ebx
	addl	$240, %ebx
	movzbl	%bl, %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	callq	_OUT32
	movq	_I2CMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_I2CMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCR_MIE@GOTPCREL(%rip), %rax
	movq	_MCR_ESG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_OUT32
	movq	_MIE_MNRE@GOTPCREL(%rip), %rax
	movq	_MIE_MALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_I2CMIER@GOTPCREL(%rip), %rax
	movq	_MIE_MSTE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_MIE_MATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_OUT32
	movq	_I2CFIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIER_RXIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OUT32                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDF_RECV,4,2                   ## @IDF_RECV
	.comm	_I2CSAR,4,2                     ## @I2CSAR
	.comm	_I2CMAR,4,2                     ## @I2CMAR
	.comm	_FIFO_SIZE,4,2                  ## @FIFO_SIZE
	.comm	_I2CFCR,4,2                     ## @I2CFCR
	.comm	_FCR_RFRST,4,2                  ## @FCR_RFRST
	.comm	_FCR_TFRST,4,2                  ## @FCR_TFRST
	.comm	_I2CMSR,4,2                     ## @I2CMSR
	.comm	_I2CMCR,4,2                     ## @I2CMCR
	.comm	_MCR_MIE,4,2                    ## @MCR_MIE
	.comm	_MCR_ESG,4,2                    ## @MCR_ESG
	.comm	_I2CMIER,4,2                    ## @I2CMIER
	.comm	_MIE_MNRE,4,2                   ## @MIE_MNRE
	.comm	_MIE_MALE,4,2                   ## @MIE_MALE
	.comm	_MIE_MSTE,4,2                   ## @MIE_MSTE
	.comm	_MIE_MATE,4,2                   ## @MIE_MATE
	.comm	_I2CFIER,4,2                    ## @I2CFIER
	.comm	_FIER_RXIE,4,2                  ## @FIER_RXIE
	.no_dead_strip	_sh7760_i2c_mrecv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh7760_i2c_mrecv
_sh7760_i2c_mrecv:                      ; @sh7760_i2c_mrecv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IDF_RECV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDF_RECV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
	str	w8, [x0, #8]
Lloh3:
	adrp	x8, _I2CSAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2CSAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #254
	bl	_OUT32
Lloh6:
	adrp	x8, _I2CMAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2CMAR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w2, #1
	bfi	w2, w8, #1, #31
	mov	x0, x19
	bl	_OUT32
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
Lloh9:
	adrp	x9, _FIFO_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FIFO_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w20, w8, w9, lt
Lloh12:
	adrp	x21, _I2CFCR@GOTPAGE
Lloh13:
	ldr	x21, [x21, _I2CFCR@GOTPAGEOFF]
Lloh14:
	adrp	x8, _FCR_RFRST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FCR_RFRST@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x22, _FCR_TFRST@GOTPAGE
Lloh18:
	ldr	x22, [x22, _FCR_TFRST@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_OUT32
	ldr	w1, [x21]
	ldr	w8, [x22]
	lsl	w9, w20, #4
	add	w9, w9, #240
	and	w9, w9, #0xf0
	orr	w2, w8, w9
	mov	x0, x19
	bl	_OUT32
Lloh19:
	adrp	x8, _I2CMSR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2CMSR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_OUT32
Lloh22:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh24:
	adrp	x9, _MCR_MIE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MCR_MIE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _MCR_ESG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MCR_ESG@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_OUT32
Lloh31:
	adrp	x8, _I2CMIER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _I2CMIER@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _MIE_MNRE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MIE_MNRE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _MIE_MALE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MIE_MALE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh40:
	adrp	x9, _MIE_MSTE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MIE_MSTE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _MIE_MATE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MIE_MATE@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_OUT32
Lloh46:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh47:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _FIER_RXIE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _FIER_RXIE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_OUT32
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDF_RECV,4,2                   ; @IDF_RECV
	.comm	_I2CSAR,4,2                     ; @I2CSAR
	.comm	_I2CMAR,4,2                     ; @I2CMAR
	.comm	_FIFO_SIZE,4,2                  ; @FIFO_SIZE
	.comm	_I2CFCR,4,2                     ; @I2CFCR
	.comm	_FCR_RFRST,4,2                  ; @FCR_RFRST
	.comm	_FCR_TFRST,4,2                  ; @FCR_TFRST
	.comm	_I2CMSR,4,2                     ; @I2CMSR
	.comm	_I2CMCR,4,2                     ; @I2CMCR
	.comm	_MCR_MIE,4,2                    ; @MCR_MIE
	.comm	_MCR_ESG,4,2                    ; @MCR_ESG
	.comm	_I2CMIER,4,2                    ; @I2CMIER
	.comm	_MIE_MNRE,4,2                   ; @MIE_MNRE
	.comm	_MIE_MALE,4,2                   ; @MIE_MALE
	.comm	_MIE_MSTE,4,2                   ; @MIE_MSTE
	.comm	_MIE_MATE,4,2                   ; @MIE_MATE
	.comm	_I2CFIER,4,2                    ; @I2CFIER
	.comm	_FIER_RXIE,4,2                  ; @FIER_RXIE
	.no_dead_strip	_sh7760_i2c_mrecv
.subsections_via_symbols
