	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_I2CWrite                  ## -- Begin function bttv_I2CWrite
	.p2align	4, 0x90
_bttv_I2CWrite:                         ## @bttv_I2CWrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$-1, %eax
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	cmpl	$1, %r8d
	movl	$2, %ebx
	sbbl	$0, %ebx
	shrb	%sil
	movb	%sil, 8(%rdi)
	addq	$8, %rdi
	movb	%dl, -10(%rbp)
	movb	%cl, -9(%rbp)
	leaq	-10(%rbp), %rsi
	movl	%ebx, %edx
	callq	_i2c_master_send
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	setne	%al
	negl	%eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_I2CWrite                  ; -- Begin function bttv_I2CWrite
	.p2align	2
_bttv_I2CWrite:                         ; @bttv_I2CWrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	cmp	w4, #0
	lsr	w8, w1, #1
	strb	w8, [x0, #8]!
	mov	w8, #1
	cinc	w19, w8, ne
	strb	w2, [sp, #14]
	strb	w3, [sp, #15]
	add	x1, sp, #14
	mov	x2, x19
	bl	_i2c_master_send
	cmp	w19, w0
	csetm	w0, ne
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
