	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda7432_write
_tda7432_write:                         ## @tda7432_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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_debug@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$2, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movb	%r15b, -42(%rbp)
	movb	%r14b, -41(%rbp)
	leaq	-42(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %edx
	callq	_i2c_master_send
	cmpl	$2, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_v4l2_err
	movl	$-1, %r12d
LBB0_2:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In tda7432_write\n"

L_.str.1:                               ## @.str.1
	.asciz	"Writing %d 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"I/O error, trying (write %d 0x%x)\n"

	.no_dead_strip	_tda7432_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda7432_write
_tda7432_write:                         ; @tda7432_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_v4l2_get_subdevdata
	mov	x22, x0
Lloh0:
	adrp	x23, _debug@GOTPAGE
Lloh1:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x21
	bl	_v4l2_dbg
	ldr	w1, [x23]
	stp	x20, x19, [sp]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
	strb	w20, [sp, #30]
	strb	w19, [sp, #31]
	add	x1, sp, #30
	mov	x0, x22
	mov	w2, #2
	bl	_i2c_master_send
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_v4l2_err
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In tda7432_write\n"

l_.str.1:                               ; @.str.1
	.asciz	"Writing %d 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"I/O error, trying (write %d 0x%x)\n"

	.no_dead_strip	_tda7432_write
.subsections_via_symbols
