	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_azf3328_mixer_write_volume_gradually
_snd_azf3328_mixer_write_volume_gradually: ## @snd_azf3328_mixer_write_volume_gradually
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %ebx
	addl	(%rdi), %ebx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_snd_azf3328_dbgcallenter
	movq	_SET_CHAN_LEFT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leaq	1(%rbx), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_AZF_MUTE_BIT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movl	%eax, %ecx
	orb	%r14b, %cl
	movl	%eax, %edx
	notb	%dl
	andb	%r14b, %dl
	testb	%bl, %al
	movzbl	%cl, %eax
	movzbl	%dl, %ecx
	cmovnel	%eax, %ecx
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpb	%cl, %bl
	setbe	%al
	leal	(%rax,%rax), %r14d
	decl	%r14d
	jmp	LBB0_3
LBB0_2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_3:
	movq	_SET_CHAN_RIGHT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_inb
	movq	%r15, %rcx
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpb	-48(%rbp), %r15b                ## 1-byte Folded Reload
	setbe	%al
	leal	(%rax,%rax), %r12d
	decl	%r12d
	jmp	LBB0_6
LBB0_5:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_6:
	leaq	1(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	je	LBB0_7
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	callq	_mdelay
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %eax
	orl	%r12d, %eax
	je	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	-44(%rbp), %bl                  ## 1-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addb	%r14b, %bl
	movzbl	%bl, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_outb
	testl	%r12d, %r12d
	jne	LBB0_12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpb	-48(%rbp), %r15b                ## 1-byte Folded Reload
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	addb	%r12b, %r15b
	movzbl	%r15b, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_outb
	testl	%r13d, %r13d
	jne	LBB0_17
	jmp	LBB0_7
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_azf3328_dbgcallleave       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_CHAN_LEFT,4,2              ## @SET_CHAN_LEFT
	.comm	_AZF_MUTE_BIT,1,0               ## @AZF_MUTE_BIT
	.comm	_SET_CHAN_RIGHT,4,2             ## @SET_CHAN_RIGHT
	.no_dead_strip	_snd_azf3328_mixer_write_volume_gradually
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_azf3328_mixer_write_volume_gradually
_snd_azf3328_mixer_write_volume_gradually: ; @snd_azf3328_mixer_write_volume_gradually
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	ldr	w8, [x0]
	add	w22, w8, w1
	bl	_snd_azf3328_dbgcallenter
Lloh0:
	adrp	x8, _SET_CHAN_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_CHAN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.1:
	add	x0, x22, #1
	bl	_inb
	mov	x23, x0
Lloh3:
	adrp	x8, _AZF_MUTE_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AZF_MUTE_BIT@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w9, w8, w21
	bic	w10, w21, w8
	tst	w8, w0
	csel	w21, w10, w9, eq
	cmp	w0, w21
	mov	w8, #-1
	cneg	w26, w8, ls
	b	LBB0_3
LBB0_2:
	mov	w23, #0
	mov	w26, #0
LBB0_3:
Lloh5:
	adrp	x8, _SET_CHAN_RIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SET_CHAN_RIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_inb
	mov	x24, x0
	cmp	w0, w20
	mov	w8, #-1
	cneg	w27, w8, ls
	b	LBB0_6
LBB0_5:
	mov	w24, #0
	mov	w27, #0
LBB0_6:
	add	x25, x22, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	orr	w8, w26, w27
	cbz	w8, LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w26, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w21, w23, uxtb
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, w26
	and	w0, w23, #0xff
	mov	x1, x25
	bl	_outb
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w27, LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w20, w24, uxtb
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, w27
	and	w0, w24, #0xff
	mov	x1, x22
	bl	_outb
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w26, #0
	cbnz	w27, LBB0_12
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w27, #0
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w19, LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_mdelay
	b	LBB0_7
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_snd_azf3328_dbgcallleave
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_CHAN_LEFT,4,2              ; @SET_CHAN_LEFT
	.comm	_AZF_MUTE_BIT,1,0               ; @AZF_MUTE_BIT
	.comm	_SET_CHAN_RIGHT,4,2             ; @SET_CHAN_RIGHT
	.no_dead_strip	_snd_azf3328_mixer_write_volume_gradually
.subsections_via_symbols
