	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setgain
_setgain:                               ## @setgain
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %eax
	leal	-31(%rax), %ecx
	xorl	%r14d, %r14d
	cmpl	$32, %eax
	movl	$31, %r15d
	cmovll	%eax, %r15d
	cmovgel	%ecx, %r14d
	movl	$255, %esi
	movl	$3, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	%r15d, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	%r14d, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$17, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_setgain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setgain
_setgain:                               ; @setgain
	.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, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	sub	w9, w8, #31
	mov	w10, #31
	cmp	w8, #32
	csel	w20, w8, w10, lt
	csel	w21, wzr, w9, lt
	mov	w1, #255
	mov	w2, #3
	bl	_reg_w
	mov	x0, x19
	mov	w1, #16
	mov	x2, x20
	bl	_reg_w
	mov	x0, x19
	mov	w1, #18
	mov	x2, x21
	bl	_reg_w
	mov	x0, x19
	mov	w1, #17
	mov	w2, #1
	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	_reg_w
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_setgain
.subsections_via_symbols
