	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv_smbus_write_byte_data
_adv_smbus_write_byte_data:             ## @adv_smbus_write_byte_data
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)
	movl	8(%rdi), %edi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	leaq	-48(%rbp), %r13
	movq	%r13, (%rsp)
	movl	%r15d, %r8d
	callq	_i2c_smbus_xfer
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	8(%rbx), %edi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r9d
	movq	%r13, (%rsp)
	movl	%r15d, %r8d
	callq	_i2c_smbus_xfer
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	8(%rbx), %edi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r9d
	movq	%r13, (%rsp)
	movl	%r15d, %r8d
	callq	_i2c_smbus_xfer
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r13d
	jns	LBB0_5
## %bb.4:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_v4l_err
LBB0_5:
	movl	%r13d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_WRITE,4,2            ## @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ## @I2C_SMBUS_BYTE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error writing %02x, %02x, %02x\n"

	.no_dead_strip	_adv_smbus_write_byte_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv_smbus_write_byte_data
_adv_smbus_write_byte_data:             ; @adv_smbus_write_byte_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	w2, [sp, #8]
	ldr	w0, [x0, #8]
	ldp	w1, w2, [x21]
Lloh0:
	adrp	x22, _I2C_SMBUS_WRITE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh2:
	adrp	x23, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
	ldr	w5, [x23]
	add	x6, sp, #8
	mov	x4, x20
	bl	_i2c_smbus_xfer
	cbz	w0, LBB0_5
; %bb.1:
	ldp	w2, w0, [x21, #4]
	ldr	w1, [x21]
	ldr	w3, [x22]
	ldr	w5, [x23]
	add	x6, sp, #8
	mov	x4, x20
	bl	_i2c_smbus_xfer
	cbz	w0, LBB0_5
; %bb.2:
	ldp	w2, w0, [x21, #4]
	ldr	w1, [x21]
	ldr	w3, [x22]
	ldr	w5, [x23]
	add	x6, sp, #8
	mov	x4, x20
	bl	_i2c_smbus_xfer
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	tbz	w22, #31, LBB0_6
; %bb.4:
	ldr	w2, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	bl	_v4l_err
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_WRITE,4,2            ; @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ; @I2C_SMBUS_BYTE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error writing %02x, %02x, %02x\n"

	.no_dead_strip	_adv_smbus_write_byte_data
.subsections_via_symbols
