	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_settreble
_tr_settreble:                          ## @tr_settreble
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movslq	%r15d, %rax
	imulq	$503208983, %rax, %rax          ## imm = 0x1DFE5C17
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$41, %rax
	addl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_TDA7318_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_basstreble2chip@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %ecx
	orl	$112, %ecx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_write_i2c
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA7318_ADDR,4,2               ## @TDA7318_ADDR
	.comm	_basstreble2chip,8,3            ## @basstreble2chip
	.no_dead_strip	_tr_settreble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_settreble
_tr_settreble:                          ; @tr_settreble
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_mutex_lock
	mov	w8, #23575
	movk	w8, #7678, lsl #16
	smull	x8, w19, w8
	lsr	x9, x8, #63
	asr	x8, x8, #41
	add	w8, w8, w9
	str	w8, [x20]
Lloh0:
	adrp	x9, _TDA7318_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TDA7318_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x9, _basstreble2chip@GOTPAGE
Lloh4:
	ldr	x9, [x9, _basstreble2chip@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, sxtw #2]
	orr	w3, w8, #0x70
	mov	x0, x20
	mov	w1, #2
	bl	_write_i2c
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA7318_ADDR,4,2               ; @TDA7318_ADDR
	.comm	_basstreble2chip,8,3            ; @basstreble2chip
	.no_dead_strip	_tr_settreble
.subsections_via_symbols
