	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3x_i2c_fill_transmit_buf
_rk3x_i2c_fill_transmit_buf:            ## @rk3x_i2c_fill_transmit_buf
	.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, %r15
	movq	(%rdi), %rdx
	movq	16(%rdi), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	movq	_TXBUFFER_BASE@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rdx
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r15), %edx
	addl	%edx, %edx
	movzbl	%dl, %esi
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rax), %rsi
	leaq	1(%rdx), %rdi
	movq	%rdi, (%r15)
	movl	(%rsi,%rdx,4), %esi
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r14), %edx
	cmpq	%rcx, %rdi
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%edx, %edx
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %r14d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%edx, %edx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r15), %edx
	addl	%edx, %edx
	movzbl	%dl, %edi
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rax), %r8
	leaq	1(%rdi), %rdx
	movq	%rdx, (%r15)
	movl	(%r8,%rdi,4), %edi
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	shll	$8, %edi
	orl	%edi, %esi
	leal	2(%r14), %edi
	cmpq	%rcx, %rdx
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%edi, %edi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%edi, %r14d
	jmp	LBB0_30
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%edi, %edi
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r15), %edx
	addl	%edx, %edx
	movzbl	%dl, %edx
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rax), %r8
	leaq	1(%rdx), %rdi
	movq	%rdi, (%r15)
	movl	(%r8,%rdx,4), %edx
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	shll	$16, %edx
	orl	%edx, %esi
	leal	3(%r14), %edx
	cmpq	%rcx, %rdi
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%edx, %edx
	jne	LBB0_10
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%edx, %edx
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r15), %eax
	addl	%eax, %eax
	movzbl	%al, %eax
	jmp	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rax), %rax
	leaq	1(%rdi), %rcx
	movq	%rcx, (%r15)
	movl	(%rax,%rdi,4), %eax
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	$4, %r14d
	shll	$24, %eax
	orl	%eax, %esi
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_i2c_writel
	movq	(%r15), %rdx
	movq	16(%r15), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	4(%rbx), %rsi
	cmpq	$28, %rbx
	movq	%rsi, %rbx
	jne	LBB0_1
LBB0_32:
	movq	_REG_MTXCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXBUFFER_BASE,8,3              ## @TXBUFFER_BASE
	.comm	_REG_MTXCNT,8,3                 ## @REG_MTXCNT
	.no_dead_strip	_rk3x_i2c_fill_transmit_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3x_i2c_fill_transmit_buf
_rk3x_i2c_fill_transmit_buf:            ; @rk3x_i2c_fill_transmit_buf
	.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
	mov	x21, #0
	mov	w20, #0
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
	ldr	x10, [x0]
Lloh0:
	adrp	x22, _TXBUFFER_BASE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TXBUFFER_BASE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x2, x21, x8
	mov	x0, x19
	bl	_i2c_writel
	ldr	x10, [x19]
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cmp	x10, x9
	ccmp	x21, #28, #4, ne
	add	x21, x21, #4
	b.eq	LBB0_30
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w20, LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x10, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w20, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	w10, [x19, #8]
	ubfiz	w1, w10, #1, #7
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x8, #8]
	add	x11, x10, #1
	str	x11, [x19]
	ldr	w1, [x12, x10, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w20, #1
	cmp	x11, x9
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w10, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x10
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x11, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w10, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	ldr	w11, [x19, #8]
	ubfiz	w11, w11, #1, #7
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x8, #8]
	add	x10, x11, #1
	str	x10, [x19]
	ldr	w11, [x12, x11, lsl #2]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w1, w1, w11, lsl #8
	add	w11, w20, #2
	cmp	x10, x9
	b.ne	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w11, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x11
	b	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x10, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w11, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	w10, [x19, #8]
	ubfiz	w10, w10, #1, #7
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x8, #8]
	add	x11, x10, #1
	str	x11, [x19]
	ldr	w10, [x12, x10, lsl #2]
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w1, w1, w10, lsl #16
	add	w10, w20, #3
	cmp	x11, x9
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w10, LBB0_11
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x11, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w10, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	ubfiz	w8, w8, #1, #7
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #8]
	add	x9, x11, #1
	str	x9, [x19]
	ldr	w8, [x8, x11, lsl #2]
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #4
	orr	w1, w1, w8, lsl #24
	b	LBB0_2
LBB0_30:
Lloh2:
	adrp	x8, _REG_MTXCNT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_MTXCNT@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	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	_i2c_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TXBUFFER_BASE,8,3              ; @TXBUFFER_BASE
	.comm	_REG_MTXCNT,8,3                 ; @REG_MTXCNT
	.no_dead_strip	_rk3x_i2c_fill_transmit_buf
.subsections_via_symbols
