	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_out1_ramp_step
_wm8350_out1_ramp_step:                 ## @wm8350_out1_ramp_step
	.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	(%rdi), %r14
	movq	8(%rdi), %r13
	movq	_WM8350_LOUT1_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wm8350_reg_read
	movq	_WM8350_OUT1L_VOL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	andl	%eax, %edx
	movq	_WM8350_OUT1L_VOL_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	%cl, %edx
	movq	(%r13), %rdi
	movq	_WM8350_RAMP_UP@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdi
	jne	LBB0_3
## %bb.1:
	movb	$1, %r15b
	movl	$1, %r12d
	cmpl	8(%r13), %edx
	jl	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %r9
	movq	_WM8350_RAMP_DOWN@GOTPCREL(%rip), %r8
	movl	$1, %ebx
	cmpq	(%r8), %rdi
	jne	LBB0_14
## %bb.4:
	movl	$-1, %r12d
	testl	%edx, %edx
	movq	%r9, %rbx
	jle	LBB0_5
LBB0_2:
	addl	%r12d, %edx
	notl	%esi
	andl	%esi, %eax
	movq	_WM8350_LOUT1_VOLUME@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	callq	_wm8350_reg_write
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_5:
	movl	$1, %r12d
	movb	$1, %r15b
LBB0_6:
	movq	_WM8350_ROUT1_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wm8350_reg_read
	movq	_WM8350_OUT1R_VOL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	andl	%eax, %edx
	movq	_WM8350_OUT1R_VOL_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	%cl, %edx
	movq	(%r13), %rdi
	cmpq	(%rbx), %rdi
	jne	LBB0_9
## %bb.7:
	movl	$1, %edi
	cmpl	12(%r13), %edx
	jl	LBB0_8
LBB0_11:
	movl	$1, %ebx
	testb	%r15b, %r15b
	je	LBB0_12
	jmp	LBB0_13
LBB0_9:
	movq	_WM8350_RAMP_DOWN@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	cmpq	(%r8), %rdi
	jne	LBB0_12
## %bb.10:
	movl	$-1, %edi
	testl	%edx, %edx
	jle	LBB0_11
LBB0_8:
	addl	%edi, %edx
	notl	%esi
	andl	%esi, %eax
	movq	_WM8350_ROUT1_VOLUME@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	callq	_wm8350_reg_write
	xorl	%ebx, %ebx
LBB0_12:
	movq	_WM8350_LOUT1_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_OUT1_VU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wm8350_set_bits
LBB0_13:
	andl	%r12d, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_LOUT1_VOLUME,4,2        ## @WM8350_LOUT1_VOLUME
	.comm	_WM8350_OUT1L_VOL_MASK,4,2      ## @WM8350_OUT1L_VOL_MASK
	.comm	_WM8350_OUT1L_VOL_SHIFT,4,2     ## @WM8350_OUT1L_VOL_SHIFT
	.comm	_WM8350_RAMP_UP,8,3             ## @WM8350_RAMP_UP
	.comm	_WM8350_RAMP_DOWN,8,3           ## @WM8350_RAMP_DOWN
	.comm	_WM8350_ROUT1_VOLUME,4,2        ## @WM8350_ROUT1_VOLUME
	.comm	_WM8350_OUT1R_VOL_MASK,4,2      ## @WM8350_OUT1R_VOL_MASK
	.comm	_WM8350_OUT1R_VOL_SHIFT,4,2     ## @WM8350_OUT1R_VOL_SHIFT
	.comm	_WM8350_OUT1_VU,4,2             ## @WM8350_OUT1_VU
	.no_dead_strip	_wm8350_out1_ramp_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_out1_ramp_step
_wm8350_out1_ramp_step:                 ; @wm8350_out1_ramp_step
	.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
	ldp	x19, x22, [x0]
Lloh0:
	adrp	x20, _WM8350_LOUT1_VOLUME@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WM8350_LOUT1_VOLUME@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm8350_reg_read
Lloh2:
	adrp	x8, _WM8350_OUT1L_VOL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8350_OUT1L_VOL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w10, w8, w0
Lloh5:
	adrp	x9, _WM8350_OUT1L_VOL_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WM8350_OUT1L_VOL_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w10, w10, w9
	ldr	x11, [x22]
Lloh8:
	adrp	x23, _WM8350_RAMP_UP@GOTPAGE
Lloh9:
	ldr	x23, [x23, _WM8350_RAMP_UP@GOTPAGEOFF]
	ldr	x12, [x23]
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.1:
	ldr	w11, [x22, #8]
	mov	w21, #1
	cmp	w10, w11
	b.lt	LBB0_5
	b	LBB0_8
LBB0_2:
Lloh10:
	adrp	x12, _WM8350_RAMP_DOWN@GOTPAGE
Lloh11:
	ldr	x12, [x12, _WM8350_RAMP_DOWN@GOTPAGEOFF]
Lloh12:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.3:
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w21, #-1
LBB0_5:
	add	w10, w10, w21
	bic	w8, w0, w8
	ldr	w1, [x20]
	lsl	w9, w10, w9
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm8350_reg_write
	mov	w21, #0
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_18
LBB0_7:
	mov	w21, #1
LBB0_8:
Lloh13:
	adrp	x24, _WM8350_ROUT1_VOLUME@GOTPAGE
Lloh14:
	ldr	x24, [x24, _WM8350_ROUT1_VOLUME@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_wm8350_reg_read
Lloh15:
	adrp	x8, _WM8350_OUT1R_VOL_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WM8350_OUT1R_VOL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _WM8350_OUT1R_VOL_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WM8350_OUT1R_VOL_SHIFT@GOTPAGEOFF]
	and	w10, w8, w0
Lloh20:
	ldr	w9, [x9]
	asr	w10, w10, w9
	ldr	x11, [x22]
	ldr	x12, [x23]
	cmp	x11, x12
	b.ne	LBB0_11
; %bb.9:
	ldr	w11, [x22, #12]
	cmp	w10, w11
	b.ge	LBB0_19
; %bb.10:
	mov	w11, #1
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x12, _WM8350_RAMP_DOWN@GOTPAGE
Lloh22:
	ldr	x12, [x12, _WM8350_RAMP_DOWN@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_15
; %bb.12:
	cmp	w10, #0
	b.le	LBB0_19
; %bb.13:
	mov	w11, #-1
LBB0_14:
	add	w10, w10, w11
	bic	w8, w0, w8
	ldr	w1, [x24]
	lsl	w9, w10, w9
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm8350_reg_write
LBB0_15:
	mov	w22, #0
LBB0_16:
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _WM8350_OUT1_VU@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WM8350_OUT1_VU@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_set_bits
LBB0_17:
	and	w0, w22, w21
LBB0_18:
	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
LBB0_19:
	mov	w22, #1
	tbz	w21, #0, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_LOUT1_VOLUME,4,2        ; @WM8350_LOUT1_VOLUME
	.comm	_WM8350_OUT1L_VOL_MASK,4,2      ; @WM8350_OUT1L_VOL_MASK
	.comm	_WM8350_OUT1L_VOL_SHIFT,4,2     ; @WM8350_OUT1L_VOL_SHIFT
	.comm	_WM8350_RAMP_UP,8,3             ; @WM8350_RAMP_UP
	.comm	_WM8350_RAMP_DOWN,8,3           ; @WM8350_RAMP_DOWN
	.comm	_WM8350_ROUT1_VOLUME,4,2        ; @WM8350_ROUT1_VOLUME
	.comm	_WM8350_OUT1R_VOL_MASK,4,2      ; @WM8350_OUT1R_VOL_MASK
	.comm	_WM8350_OUT1R_VOL_SHIFT,4,2     ; @WM8350_OUT1R_VOL_SHIFT
	.comm	_WM8350_OUT1_VU,4,2             ; @WM8350_OUT1_VU
	.no_dead_strip	_wm8350_out1_ramp_step
.subsections_via_symbols
