	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_w
_i2c_w:                                 ## @i2c_w
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_ET_I2C_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$64, %edx
	callq	_reg_w_val
	movl	%r15d, %eax
	shll	$4, %eax
	andl	$112, %eax
	andl	$3, %r13d
	orl	%eax, %r13d
	movq	_ET_I2C_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_reg_w_val
	movq	_ET_I2C_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_reg_w_val
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%r15d, %ebx
	incq	%rbx
	movq	_ET_I2C_DATA0@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	(%r15), %rsi
	addq	%rax, %rsi
	movl	(%r14,%rax,4), %edx
	movq	%r12, %rdi
	callq	_reg_w_val
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ET_I2C_BASE,8,3                ## @ET_I2C_BASE
	.comm	_ET_I2C_COUNT,8,3               ## @ET_I2C_COUNT
	.comm	_ET_I2C_REG,8,3                 ## @ET_I2C_REG
	.comm	_ET_I2C_DATA0,8,3               ## @ET_I2C_DATA0
	.no_dead_strip	_i2c_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_w
_i2c_w:                                 ; @i2c_w
	.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	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ET_I2C_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ET_I2C_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	w2, #64
	bl	_reg_w_val
	and	w2, w22, #0x3
	bfi	w2, w21, #4, #3
Lloh3:
	adrp	x8, _ET_I2C_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ET_I2C_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_reg_w_val
Lloh6:
	adrp	x8, _ET_I2C_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ET_I2C_REG@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_reg_w_val
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w21
	add	x21, x8, #1
Lloh9:
	adrp	x22, _ET_I2C_DATA0@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ET_I2C_DATA0@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x9, [x22]
	add	x1, x9, x8
	ldr	w2, [x19, w8, uxtw #2]
	mov	x0, x20
	bl	_reg_w_val
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_2
LBB0_3:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ET_I2C_BASE,8,3                ; @ET_I2C_BASE
	.comm	_ET_I2C_COUNT,8,3               ; @ET_I2C_COUNT
	.comm	_ET_I2C_REG,8,3                 ; @ET_I2C_REG
	.comm	_ET_I2C_DATA0,8,3               ; @ET_I2C_DATA0
	.no_dead_strip	_i2c_w
.subsections_via_symbols
