	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlv320aic23b_write
_tlv320aic23b_write:                    ## @tlv320aic23b_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r12
	cmpl	$10, %r14d
	jb	LBB0_2
## %bb.1:
	cmpl	$15, %r14d
	je	LBB0_2
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
LBB0_6:
	movl	$-1, %r13d
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	(%r14,%r14), %eax
	movl	%r13d, %r15d
	sarl	$8, %r15d
	orl	%eax, %r15d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movzbl	%r13b, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_v4l2_err
	jmp	LBB0_6
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %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	"Invalid register R%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"I2C: cannot write %03x to register R%d\n"

	.no_dead_strip	_tlv320aic23b_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlv320aic23b_write
_tlv320aic23b_write:                    ; @tlv320aic23b_write
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_v4l2_get_subdevdata
	mov	x22, x0
	cmp	w19, #10
	b.lo	LBB0_4
; %bb.1:
	cmp	w19, #15
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
LBB0_3:
	bl	_v4l2_err
	mov	w0, #-1
	b	LBB0_8
LBB0_4:
	asr	w8, w20, #8
	orr	w23, w8, w19, lsl #1
	and	w24, w20, #0xff
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_i2c_smbus_write_byte_data
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_i2c_smbus_write_byte_data
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_i2c_smbus_write_byte_data
	cbz	x0, LBB0_8
; %bb.7:
	str	x19, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	b	LBB0_3
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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid register R%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"I2C: cannot write %03x to register R%d\n"

	.no_dead_strip	_tlv320aic23b_write
.subsections_via_symbols
