	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1843_get_gain
_ad1843_get_gain:                       ## @ad1843_get_gain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	16(%rsi), %rdx
	movb	(%rdx), %cl
	movl	$-1, %ebx
	shll	%cl, %ebx
	notl	%ebx
	movl	8(%rsi), %r8d
	leaq	-24(%rbp), %rcx
	leaq	-20(%rbp), %r9
	movl	$2, %esi
	callq	_ad1843_read_multi
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movzwl	%bx, %edi
	movl	%edi, %eax
	subl	-24(%rbp), %eax
	movl	%edi, %ecx
	subl	-20(%rbp), %ecx
	jmp	LBB0_3
LBB0_1:
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %ecx
	movzwl	%bx, %edi
LBB0_3:
	imull	$100, %eax, %eax
	movl	%edi, %esi
	shrl	%esi
	addl	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, %ebx
	imull	$100, %ecx, %eax
	addl	%esi, %eax
	cltd
	idivl	%edi
	shll	$8, %eax
	orl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad1843_get_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1843_get_gain
_ad1843_get_gain:                       ; @ad1843_get_gain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x2, [x1, #16]
	ldr	w8, [x2]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w20, w8
	ldr	w4, [x1, #8]
	add	x3, sp, #12
	add	x5, sp, #8
	mov	w1, #2
	bl	_ad1843_read_multi
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	and	w8, w20, #0xffff
	ldp	w10, w9, [sp, #8]
	sub	w9, w8, w9
	sub	w10, w8, w10
	b	LBB0_3
LBB0_2:
	ldp	w10, w9, [sp, #8]
	and	w8, w20, #0xffff
LBB0_3:
	mov	w11, #100
	lsr	w12, w8, #1
	madd	w9, w9, w11, w12
	sdiv	w9, w9, w8
	madd	w10, w10, w11, w12
	sdiv	w8, w10, w8
	orr	w0, w9, w8, lsl #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad1843_get_gain
.subsections_via_symbols
