	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda7432_set
_tda7432_set:                           ## @tda7432_set
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	callq	_v4l2_get_subdevdata
	movq	_TDA7432_IN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, -32(%rbp)
	movq	_TDA7432_STEREO_IN@GOTPCREL(%rip), %rcx
	movq	_TDA7432_BASS_SYM@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	orb	(%rcx), %dl
	movq	_TDA7432_BASS_NORM@GOTPCREL(%rip), %rcx
	orb	(%rcx), %dl
	movb	%dl, -31(%rbp)
	movb	$59, -30(%rbp)
	movq	_loudness@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testb	%cl, %cl
	je	LBB0_2
## %bb.1:
	movq	_TDA7432_LD_ON@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	orb	$59, %dl
	movb	%dl, -30(%rbp)
LBB0_2:
	movq	_TDA7432_TREBLE_0DB@GOTPCREL(%rip), %rdx
	movq	_TDA7432_BASS_0DB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	shll	$4, %esi
	orl	(%rdx), %esi
	movb	%sil, -29(%rbp)
	movq	_TDA7432_ATTEN_0DB@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	imull	$16843009, %edx, %edx           ## imm = 0x1010101
	movl	%edx, -28(%rbp)
	movb	%cl, -24(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	movl	$9, %edx
	callq	_i2c_master_send
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$9, %ecx
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
	movl	$-1, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA7432_IN,1,0                 ## @TDA7432_IN
	.comm	_TDA7432_STEREO_IN,1,0          ## @TDA7432_STEREO_IN
	.comm	_TDA7432_BASS_SYM,1,0           ## @TDA7432_BASS_SYM
	.comm	_TDA7432_BASS_NORM,1,0          ## @TDA7432_BASS_NORM
	.comm	_loudness,1,0                   ## @loudness
	.comm	_TDA7432_LD_ON,1,0              ## @TDA7432_LD_ON
	.comm	_TDA7432_TREBLE_0DB,4,2         ## @TDA7432_TREBLE_0DB
	.comm	_TDA7432_BASS_0DB,4,2           ## @TDA7432_BASS_0DB
	.comm	_TDA7432_ATTEN_0DB,1,0          ## @TDA7432_ATTEN_0DB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error, trying tda7432_set\n"

	.no_dead_strip	_tda7432_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda7432_set
_tda7432_set:                           ; @tda7432_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_v4l2_get_subdevdata
Lloh3:
	adrp	x8, _TDA7432_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDA7432_IN@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #8]
Lloh5:
	adrp	x8, _TDA7432_STEREO_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TDA7432_STEREO_IN@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh7:
	adrp	x9, _TDA7432_BASS_SYM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TDA7432_BASS_SYM@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _TDA7432_BASS_NORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDA7432_BASS_NORM@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
	strb	w8, [sp, #9]
	mov	w9, #59
	strb	w9, [sp, #10]
Lloh11:
	adrp	x8, _loudness@GOTPAGE
Lloh12:
	ldr	x8, [x8, _loudness@GOTPAGEOFF]
	ldrb	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x10, _TDA7432_LD_ON@GOTPAGE
Lloh14:
	ldr	x10, [x10, _TDA7432_LD_ON@GOTPAGEOFF]
	ldrb	w10, [x10]
	orr	w9, w10, w9
	strb	w9, [sp, #10]
LBB0_2:
Lloh15:
	adrp	x9, _TDA7432_TREBLE_0DB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TDA7432_TREBLE_0DB@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _TDA7432_BASS_0DB@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TDA7432_BASS_0DB@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10, lsl #4
Lloh21:
	adrp	x10, _TDA7432_ATTEN_0DB@GOTPAGE
Lloh22:
	ldr	x10, [x10, _TDA7432_ATTEN_0DB@GOTPAGEOFF]
	strb	w9, [sp, #11]
	ldrb	w9, [x10]
	mov	w10, #16843009
	mul	w9, w9, w10
	str	w9, [sp, #12]
	strb	w8, [sp, #16]
	add	x1, sp, #8
	mov	w2, #9
	bl	_i2c_master_send
	cmp	w0, #9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
	mov	w0, #-1
LBB0_5:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA7432_IN,1,0                 ; @TDA7432_IN
	.comm	_TDA7432_STEREO_IN,1,0          ; @TDA7432_STEREO_IN
	.comm	_TDA7432_BASS_SYM,1,0           ; @TDA7432_BASS_SYM
	.comm	_TDA7432_BASS_NORM,1,0          ; @TDA7432_BASS_NORM
	.comm	_loudness,1,0                   ; @loudness
	.comm	_TDA7432_LD_ON,1,0              ; @TDA7432_LD_ON
	.comm	_TDA7432_TREBLE_0DB,4,2         ; @TDA7432_TREBLE_0DB
	.comm	_TDA7432_BASS_0DB,4,2           ; @TDA7432_BASS_0DB
	.comm	_TDA7432_ATTEN_0DB,1,0          ; @TDA7432_ATTEN_0DB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error, trying tda7432_set\n"

	.no_dead_strip	_tda7432_set
.subsections_via_symbols
