	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_get_mux
_snd_es18xx_get_mux:                    ## @snd_es18xx_get_mux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$28, %esi
	callq	_snd_es18xx_mixer_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$7, %eax
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	orl	$16, %edx
	cmpl	$6265, %edx                     ## imm = 0x1879
	jne	LBB0_1
LBB0_5:
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpl	$7, %eax
	jne	LBB0_2
## %bb.3:
	addl	$-6279, %ecx                    ## imm = 0xE779
	movl	$3, %eax
	cmpl	$1, %ecx
	ja	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_snd_es18xx_mixer_read
	andl	$8, %eax
	cmpl	$1, %eax
	movl	$4, %eax
	sbbl	$0, %eax
	jmp	LBB0_5
LBB0_2:
	leaq	_snd_es18xx_get_mux.invMap4Source(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_snd_es18xx_get_mux.invMap4Source:      ## @snd_es18xx_get_mux.invMap4Source
	.ascii	"\000\000\001\001\000\000\002\003"

	.no_dead_strip	_snd_es18xx_get_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es18xx_get_mux
_snd_es18xx_get_mux:                    ; @snd_es18xx_get_mux
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_snd_kcontrol_chip
	mov	x20, x0
	mov	w1, #28
	bl	_snd_es18xx_mixer_read
                                        ; kill: def $w0 killed $w0 def $x0
	and	x21, x0, #0x7
	ldr	w8, [x20]
	orr	w9, w8, #0x10
	mov	w10, #6265
	cmp	w9, w10
	b.ne	LBB0_2
LBB0_1:
	ldr	x8, [x19]
	str	w21, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	w21, #7
	b.ne	LBB0_5
; %bb.3:
	mov	w9, #-6279
	add	w8, w8, w9
	mov	w21, #3
	cmp	w8, #1
	b.hi	LBB0_1
; %bb.4:
	mov	x0, x20
	mov	w1, #122
	bl	_snd_es18xx_mixer_read
	tst	w0, #0x8
	cinc	w21, w21, ne
	b	LBB0_1
LBB0_5:
Lloh0:
	adrp	x8, _snd_es18xx_get_mux.invMap4Source@PAGE
Lloh1:
	add	x8, x8, _snd_es18xx_get_mux.invMap4Source@PAGEOFF
	ldrb	w21, [x8, x21]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_snd_es18xx_get_mux.invMap4Source:      ; @snd_es18xx_get_mux.invMap4Source
	.ascii	"\000\000\001\001\000\000\002\003"

	.no_dead_strip	_snd_es18xx_get_mux
.subsections_via_symbols
