	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh7760_i2c_msend
_sh7760_i2c_msend:                      ## @sh7760_i2c_msend
	.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	%rdi, %rbx
	movq	_IDF_SEND@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	(%rbx), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	_FIFO_SIZE@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	cmpq	(%r15), %rax
	setge	%r14b
	shll	$3, %r14d
	movq	_I2CFCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FCR_RFRST@GOTPCREL(%rip), %r13
	movq	_FCR_TFRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_OUT32
	movl	(%r12), %esi
	orl	(%r13), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_OUT32
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	movq	_I2CTFDR@GOTPCREL(%rip), %r14
	movq	_I2CRXTX@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IN32
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	(%rbx), %rax
	addq	$4, 16(%rax)
	decq	8(%rax)
	jne	LBB0_2
LBB0_4:
	movq	_I2CMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %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	%rbx, %rdi
	callq	_OUT32
	movq	_I2CFSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	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	%rbx, %rdi
	callq	_OUT32
	movq	_I2CFIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIER_TEIE@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_6
## %bb.5:
	movq	_FIER_TXIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_6:
	orl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OUT32                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDF_SEND,4,2                   ## @IDF_SEND
	.comm	_I2CSAR,4,2                     ## @I2CSAR
	.comm	_I2CMAR,4,2                     ## @I2CMAR
	.comm	_FIFO_SIZE,8,3                  ## @FIFO_SIZE
	.comm	_I2CFCR,4,2                     ## @I2CFCR
	.comm	_FCR_RFRST,4,2                  ## @FCR_RFRST
	.comm	_FCR_TFRST,4,2                  ## @FCR_TFRST
	.comm	_I2CTFDR,4,2                    ## @I2CTFDR
	.comm	_I2CRXTX,4,2                    ## @I2CRXTX
	.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	_I2CFSR,4,2                     ## @I2CFSR
	.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_TEIE,4,2                  ## @FIER_TEIE
	.comm	_FIER_TXIE,4,2                  ## @FIER_TXIE
	.no_dead_strip	_sh7760_i2c_msend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh7760_i2c_msend
_sh7760_i2c_msend:                      ; @sh7760_i2c_msend
	.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	x19, x0
Lloh0:
	adrp	x8, _IDF_SEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDF_SEND@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]
	lsl	w2, w8, #1
	mov	x0, x19
	bl	_OUT32
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh9:
	adrp	x20, _FIFO_SIZE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _FIFO_SIZE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w21, ge
Lloh11:
	adrp	x22, _I2CFCR@GOTPAGE
Lloh12:
	ldr	x22, [x22, _I2CFCR@GOTPAGEOFF]
Lloh13:
	adrp	x23, _FCR_RFRST@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FCR_RFRST@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x23]
Lloh15:
	adrp	x9, _FCR_TFRST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FCR_TFRST@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_OUT32
	ldr	w1, [x22]
	ldr	w8, [x23]
	orr	w2, w8, w21, lsl #3
	mov	x0, x19
	bl	_OUT32
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh18:
	adrp	x21, _I2CTFDR@GOTPAGE
Lloh19:
	ldr	x21, [x21, _I2CTFDR@GOTPAGEOFF]
Lloh20:
	adrp	x22, _I2CRXTX@GOTPAGE
Lloh21:
	ldr	x22, [x22, _I2CRXTX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_IN32
	ldr	x8, [x20]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_OUT32
	ldr	x8, [x19]
	ldp	x9, x10, [x8, #8]
	subs	x9, x9, #1
	add	x10, x10, #4
	stp	x9, x10, [x8, #8]
	b.ne	LBB0_2
LBB0_4:
Lloh22:
	adrp	x8, _I2CMSR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I2CMSR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_OUT32
Lloh25:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh27:
	adrp	x9, _MCR_MIE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MCR_MIE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	ldr	w8, [x9]
Lloh31:
	adrp	x9, _MCR_ESG@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MCR_ESG@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_OUT32
Lloh34:
	adrp	x8, _I2CFSR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2CFSR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_OUT32
Lloh37:
	adrp	x8, _I2CMIER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _I2CMIER@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _MIE_MNRE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MIE_MNRE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _MIE_MALE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MIE_MALE@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh46:
	adrp	x9, _MIE_MSTE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MIE_MSTE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh49:
	adrp	x9, _MIE_MATE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MIE_MATE@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_OUT32
Lloh52:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh53:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x8, _FIER_TEIE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _FIER_TEIE@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
Lloh58:
	adrp	x10, _FIER_TXIE@GOTPAGE
Lloh59:
	ldr	x10, [x10, _FIER_TXIE@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	mov	x0, x19
	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
	b	_OUT32
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.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	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IDF_SEND,4,2                   ; @IDF_SEND
	.comm	_I2CSAR,4,2                     ; @I2CSAR
	.comm	_I2CMAR,4,2                     ; @I2CMAR
	.comm	_FIFO_SIZE,8,3                  ; @FIFO_SIZE
	.comm	_I2CFCR,4,2                     ; @I2CFCR
	.comm	_FCR_RFRST,4,2                  ; @FCR_RFRST
	.comm	_FCR_TFRST,4,2                  ; @FCR_TFRST
	.comm	_I2CTFDR,4,2                    ; @I2CTFDR
	.comm	_I2CRXTX,4,2                    ; @I2CRXTX
	.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	_I2CFSR,4,2                     ; @I2CFSR
	.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_TEIE,4,2                  ; @FIER_TEIE
	.comm	_FIER_TXIE,4,2                  ; @FIER_TXIE
	.no_dead_strip	_sh7760_i2c_msend
.subsections_via_symbols
