	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_azf3328_get_mixer_enum
_snd_azf3328_get_mixer_enum:            ## @snd_azf3328_get_mixer_enum
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %esi
	leaq	-40(%rbp), %rdi
	callq	_snd_azf3328_mixer_reg_decode
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_snd_azf3328_mixer_inw
	movq	-40(%rbp), %rsi
	movq	_IDX_MIXER_REC_SELECT@GOTPCREL(%rip), %rcx
	movzwl	%ax, %edx
	cmpq	(%rcx), %rsi
	jne	LBB0_2
## %bb.1:
	movl	%edx, %eax
	shrl	$8, %eax
	movl	-32(%rbp), %ecx
	leal	-1(%rcx), %edi
	andl	%edi, %eax
	movq	(%r14), %rbx
	movw	%ax, (%rbx)
	andl	%edx, %edi
	movw	%di, 2(%rbx)
	jmp	LBB0_3
LBB0_2:
	movb	-28(%rbp), %cl
	movl	%edx, %edi
	shrl	%cl, %edi
	movl	-32(%rbp), %ecx
	leal	-1(%rcx), %eax
	andl	%edi, %eax
	movq	(%r14), %rdi
	movw	%ax, (%rdi)
	movzwl	2(%rdi), %edi
LBB0_3:
	movzwl	-28(%rbp), %r9d
	movl	%ecx, (%rsp)
	movzwl	%ax, %ecx
	movzwl	%di, %r8d
	leaq	L_.str(%rip), %rdi
	callq	_snd_azf3328_dbgmixer
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDX_MIXER_REC_SELECT,8,3       ## @IDX_MIXER_REC_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_enum: %02x is %04x -> %d|%d (shift %02d, enum_c %d)\n"

	.no_dead_strip	_snd_azf3328_get_mixer_enum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_azf3328_get_mixer_enum
_snd_azf3328_get_mixer_enum:            ; @snd_azf3328_get_mixer_enum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	w1, [x20]
	mov	x0, sp
	bl	_snd_azf3328_mixer_reg_decode
	ldr	x1, [sp]
	mov	x0, x21
	bl	_snd_azf3328_mixer_inw
	mov	x2, x0
	ldr	x1, [sp]
Lloh0:
	adrp	x8, _IDX_MIXER_REC_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDX_MIXER_REC_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w6, [sp, #8]
	sub	w8, w6, #1
	and	w3, w8, w2, lsr #8
	ldr	x9, [x19]
	strh	w3, [x9]
	and	w4, w8, w2
	strh	w4, [x9, #2]
	b	LBB0_3
LBB0_2:
	ldrh	w8, [sp, #12]
	lsr	w8, w2, w8
	ldr	w6, [sp, #8]
	mov	w9, #65535
	add	w9, w6, w9
	and	w3, w8, w9
	ldr	x8, [x19]
	strh	w3, [x8]
	ldrh	w4, [x8, #2]
LBB0_3:
	ldrh	w5, [sp, #12]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_azf3328_dbgmixer
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IDX_MIXER_REC_SELECT,8,3       ; @IDX_MIXER_REC_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_enum: %02x is %04x -> %d|%d (shift %02d, enum_c %d)\n"

	.no_dead_strip	_snd_azf3328_get_mixer_enum
.subsections_via_symbols
