	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rolloff_put
_rolloff_put:                           ## @rolloff_put
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	8(%r14), %r12
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_AK4396_CONTROL_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	(%rax,%rdx,4), %r13d
	movq	(%rbx), %rax
	movq	_AK4396_SLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%r15d, %ecx
	orl	%r13d, %ecx
	notl	%r15d
	andl	%r13d, %r15d
	cmpq	$0, (%rax)
	cmovnel	%ecx, %r15d
	cmpl	%r13d, %r15d
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	callq	_ak4396_write
	movq	_AK4396_CONTROL_2@GOTPCREL(%rip), %rax
	cmpl	$2, (%r12)
	jb	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	callq	_ak4396_write
	movq	_AK4396_CONTROL_2@GOTPCREL(%rip), %rax
	incl	%ebx
	cmpl	(%r12), %ebx
	jb	LBB0_4
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	%r13d, %r15d
	setne	%bl
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK4396_CONTROL_2,8,3           ## @AK4396_CONTROL_2
	.comm	_AK4396_SLOW,4,2                ## @AK4396_SLOW
	.no_dead_strip	_rolloff_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rolloff_put
_rolloff_put:                           ; @rolloff_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x22, [x19, #8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _AK4396_CONTROL_2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AK4396_CONTROL_2@GOTPAGEOFF]
	ldr	x2, [x23]
	ldr	w24, [x8, x2, lsl #2]
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _AK4396_SLOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AK4396_SLOW@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w10, w9, w24
	bic	w9, w24, w9
	cmp	x8, #0
	csel	w20, w9, w10, eq
	cmp	w20, w24
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	bl	_ak4396_write
	ldr	w8, [x22]
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.3:
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_ak4396_write
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lo	LBB0_4
LBB0_5:
	cmp	w20, w24
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AK4396_CONTROL_2,8,3           ; @AK4396_CONTROL_2
	.comm	_AK4396_SLOW,4,2                ; @AK4396_SLOW
	.no_dead_strip	_rolloff_put
.subsections_via_symbols
