	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zc0301_i2c_write               ## -- Begin function zc0301_i2c_write
	.p2align	4, 0x90
_zc0301_i2c_write:                      ## @zc0301_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
	movl	%edx, %r15d
	movl	%esi, %edx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	$146, %esi
	callq	_zc0301_write_reg
	movq	%rax, %r13
	movzbl	%r15b, %edx
	movq	%r12, %rdi
	movl	$147, %esi
	callq	_zc0301_write_reg
	movq	%rax, %rbx
	addl	%r13d, %ebx
	movl	%r15d, %edx
	sarl	$8, %edx
	movq	%r12, %rdi
	movl	$148, %esi
	callq	_zc0301_write_reg
	movq	%rax, %r13
	addl	%ebx, %r13d
	movq	%r12, %rdi
	movl	$144, %esi
	movl	$1, %edx
	callq	_zc0301_write_reg
	movq	%rax, %r14
	addl	%r13d, %r14d
	movl	%r15d, %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	$1, %edi
	callq	_msleep
	movq	%r12, %rdi
	movl	$145, %esi
	callq	_zc0301_read_reg
	movl	%eax, %r12d
	sarl	$31, %r12d
	andl	%eax, %r12d
	negl	%r14d
	cmpl	%r14d, %r12d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_DBG
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%r14d, %r12d
	setne	%bl
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_PDBGG
	negl	%ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C write failed at address 0x%04X, value: 0x%04X"

L_.str.1:                               ## @.str.1
	.asciz	"I2C write: address 0x%04X, value: 0x%04X"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zc0301_i2c_write               ; -- Begin function zc0301_i2c_write
	.p2align	2
_zc0301_i2c_write:                      ; @zc0301_i2c_write
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #146
	mov	x2, x20
	bl	_zc0301_write_reg
	mov	x22, x0
	and	w2, w19, #0xff
	mov	x0, x21
	mov	w1, #147
	bl	_zc0301_write_reg
	add	w22, w0, w22
	asr	w2, w19, #8
	mov	x0, x21
	mov	w1, #148
	bl	_zc0301_write_reg
	add	w22, w22, w0
	mov	x0, x21
	mov	w1, #144
	mov	w2, #1
	bl	_zc0301_write_reg
	add	w23, w22, w0
	mov	w0, #1
	bl	_msleep
	mov	x0, x21
	mov	w1, #145
	bl	_zc0301_read_reg
	cmp	w0, #0
	csel	w21, w0, wzr, lt
	neg	w22, w23
	cmn	w21, w23
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	mov	x3, x19
	bl	_DBG
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_PDBGG
	cmp	w21, w22
	csetm	w0, ne
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C write failed at address 0x%04X, value: 0x%04X"

l_.str.1:                               ; @.str.1
	.asciz	"I2C write: address 0x%04X, value: 0x%04X"

.subsections_via_symbols
