	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_setvol
_tr_setvol:                             ## @tr_setvol
	.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, %ebx
	movq	%rdi, %r14
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leal	2047(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	sarl	$11, %ecx
	movl	%ecx, (%r14)
	movq	_TDA7318_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	$31, %ecx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_write_i2c
	movq	%r15, %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
	.no_dead_strip	_tr_setvol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_setvol
_tr_setvol:                             ; @tr_setvol
	.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
	add	w8, w19, #2047
	cmp	w19, #0
	csel	w8, w8, w19, lt
	asr	w8, w8, #11
	str	w8, [x20]
Lloh0:
	adrp	x9, _TDA7318_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TDA7318_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	eor	w3, w8, #0x1f
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA7318_ADDR,4,2               ; @TDA7318_ADDR
	.no_dead_strip	_tr_setvol
.subsections_via_symbols
