	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_i2c_write
_si4713_i2c_write:                      ## @si4713_i2c_write
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	_BUFFER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-5, %eax
	cmpl	%edx, %eax
	jge	LBB0_1
## %bb.7:
	movl	%r12d, %eax
	jmp	LBB0_8
LBB0_1:
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	_command_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	movq	(%r13), %rdi
	cmpb	(%rdi,%r15,8), %al
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rdi,%r15,8), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_send_command
	movl	%eax, %r12d
	movq	(%r13), %rdi
	jmp	LBB0_5
LBB0_6:
	movl	%r12d, %eax
	sarl	$31, %eax
	andl	%r12d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BUFFER_LENGTH,4,2              ## @BUFFER_LENGTH
	.comm	_command_table,8,3              ## @command_table
	.no_dead_strip	_si4713_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_i2c_write
_si4713_i2c_write:                      ; @si4713_i2c_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x8, _BUFFER_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFER_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #5
	cmp	w8, w2
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x22
	b	LBB0_8
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh6:
	adrp	x23, _command_table@GOTPAGE
Lloh7:
	ldr	x23, [x23, _command_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x24, #0
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #8
	cmp	x25, w0, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	ldr	x0, [x23]
	ldrb	w9, [x0, x24]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, x24
	ldr	w1, [x8, #4]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_send_command
	mov	x22, x0
	ldr	x0, [x23]
	b	LBB0_4
LBB0_7:
	cmp	w22, #0
	csel	w0, w22, wzr, lt
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BUFFER_LENGTH,4,2              ; @BUFFER_LENGTH
	.comm	_command_table,8,3              ; @command_table
	.no_dead_strip	_si4713_i2c_write
.subsections_via_symbols
