	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_azf3328_put_mixer_enum
_snd_azf3328_put_mixer_enum:            ## @snd_azf3328_put_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_snd_azf3328_mixer_reg_decode
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_snd_azf3328_mixer_inw
	movl	%eax, %r14d
	movq	-48(%rbp), %rsi
	movq	_IDX_MIXER_REC_SELECT@GOTPCREL(%rip), %rdx
	movl	-40(%rbp), %eax
	decl	%eax
	movq	(%r12), %rcx
	movl	(%rcx), %ebx
	cmpq	(%rdx), %rsi
	jne	LBB0_4
## %bb.1:
	cmpl	%eax, %ebx
	ja	LBB0_3
## %bb.2:
	movl	4(%rcx), %edx
	movl	$8, %ecx
	cmpl	%eax, %edx
	ja	LBB0_3
	jmp	LBB0_6
LBB0_4:
	cmpl	%eax, %ebx
	jbe	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	-36(%rbp), %ecx
	shll	%cl, %eax
	notl	%eax
	andl	%r14d, %eax
	movl	%eax, %edx
LBB0_6:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_azf3328_mixer_outw
	movq	-48(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_snd_azf3328_dbgmixer
	xorl	%eax, %eax
	cmpl	%r14d, %ebx
	setne	%al
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDX_MIXER_REC_SELECT,8,3       ## @IDX_MIXER_REC_SELECT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"put_enum: %02x to %04x, oreg %04x\n"

	.no_dead_strip	_snd_azf3328_put_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_put_mixer_enum
_snd_azf3328_put_mixer_enum:            ; @snd_azf3328_put_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	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w1, [x20]
	mov	x0, sp
	bl	_snd_azf3328_mixer_reg_decode
	ldr	x1, [sp]
	mov	x0, x19
	bl	_snd_azf3328_mixer_inw
	mov	x20, x0
	ldr	x1, [sp]
Lloh0:
	adrp	x8, _IDX_MIXER_REC_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDX_MIXER_REC_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	ldr	x9, [x21]
	ldr	w8, [x9]
	ldr	w10, [sp, #8]
	sub	w10, w10, #1
	cmp	x1, x11
	b.ne	LBB0_4
; %bb.1:
	cmp	w8, w10
	b.hi	LBB0_5
; %bb.2:
	ldr	w9, [x9, #4]
	cmp	w9, w10
	b.hi	LBB0_5
; %bb.3:
	mov	w11, #8
	b	LBB0_7
LBB0_4:
	cmp	w8, w10
	b.ls	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	w11, [sp, #12]
	lsl	w9, w10, w11
	bic	w9, w20, w9
LBB0_7:
	lsl	w8, w8, w11
	orr	w21, w9, w8
	mov	x0, x19
	mov	x2, x21
	bl	_snd_azf3328_mixer_outw
	ldr	x1, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_snd_azf3328_dbgmixer
	cmp	w21, w20
	cset	w0, ne
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IDX_MIXER_REC_SELECT,8,3       ; @IDX_MIXER_REC_SELECT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"put_enum: %02x to %04x, oreg %04x\n"

	.no_dead_strip	_snd_azf3328_put_mixer_enum
.subsections_via_symbols
