	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_put_mux
_snd_es18xx_put_mux:                    ## @snd_es18xx_put_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movl	$-6248, %eax                    ## imm = 0xE798
	addl	(%r14), %eax
	cmpl	$32, %eax
	ja	LBB0_5
## %bb.1:
	movq	(%rbx), %rcx
	movb	(%rcx), %r15b
	movl	$65537, %ecx                    ## imm = 0x10001
	btq	%rax, %rcx
	jb	LBB0_6
## %bb.2:
	movl	$131074, %ecx                   ## imm = 0x20002
	btq	%rax, %rcx
	jb	LBB0_10
## %bb.3:
	movabsq	$6442450944, %rcx               ## imm = 0x180000000
	btq	%rax, %rcx
	jae	LBB0_5
## %bb.4:
	cmpb	$5, %r15b
	jb	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	cmpb	$8, %r15b
	jae	LBB0_7
	jmp	LBB0_11
LBB0_6:
	xorl	%ebx, %ebx
	cmpb	$4, %r15b
	jb	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	xorl	%ecx, %ecx
	cmpb	$4, %r15b
	sete	%cl
	movzbl	%r15b, %eax
	movl	$3, %r15d
	cmovnel	%eax, %r15d
	movl	%ecx, %ebx
	shlb	$3, %bl
	shll	$3, %ecx
	movq	%r14, %rdi
	movl	$122, %esi
	movl	$8, %edx
	callq	_snd_es18xx_mixer_bits
	cmpb	%bl, %al
	setne	%bl
LBB0_9:
	movzbl	%r15b, %eax
	leaq	_snd_es18xx_put_mux.map4Source(%rip), %rcx
	movb	(%rax,%rcx), %r15b
LBB0_11:
	movzbl	%r15b, %r15d
	movq	%r14, %rdi
	movl	$28, %esi
	movl	$7, %edx
	movl	%r15d, %ecx
	callq	_snd_es18xx_mixer_bits
	cmpb	%r15b, %al
	setne	%al
	orb	%bl, %al
	movzbl	%al, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_snd_es18xx_put_mux.map4Source:         ## @snd_es18xx_put_mux.map4Source
	.ascii	"\000\002\006\007"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_es18xx_put_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_put_mux
_snd_es18xx_put_mux:                    ; @snd_es18xx_put_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	x20, x1
	bl	_snd_kcontrol_chip
	ldr	w8, [x0]
	mov	w9, #-6248
	add	w8, w8, w9
	cmp	w8, #32
	b.hi	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x9, [x20]
	ldrb	w20, [x9]
	mov	w9, #1
	lsl	x9, x9, x8
	mov	w10, #65537
	tst	x9, x10
	b.ne	LBB0_8
; %bb.2:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	w10, #131074
	tst	x9, x10
	b.ne	LBB0_6
; %bb.3:
	mov	w9, #1
	lsl	x8, x9, x8
	tst	x8, #0x180000000
	b.eq	LBB0_9
; %bb.4:
	cmp	w20, #5
	b.hs	LBB0_9
; %bb.5:
	mov	w8, #3
	cmp	w20, #4
	csel	w20, w8, w20, eq
	cset	w8, eq
	lsl	w21, w8, #3
	mov	x0, x19
	mov	w1, #122
	mov	w2, #8
	mov	x3, x21
	bl	_snd_es18xx_mixer_bits
	cmp	w0, w21
	cset	w21, ne
	b	LBB0_11
LBB0_6:
	cmp	w20, #8
	b.hs	LBB0_9
; %bb.7:
	mov	w21, #0
	b	LBB0_12
LBB0_8:
	cmp	w20, #4
	b.lo	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
	mov	w21, #0
LBB0_11:
Lloh3:
	adrp	x8, _snd_es18xx_put_mux.map4Source@PAGE
Lloh4:
	add	x8, x8, _snd_es18xx_put_mux.map4Source@PAGEOFF
	ldrb	w20, [x8, w20, uxtw]
LBB0_12:
	mov	x0, x19
	mov	w1, #28
	mov	w2, #7
	mov	x3, x20
	bl	_snd_es18xx_mixer_bits
	cmp	w0, w20
	cset	w8, ne
	orr	w0, w8, w21
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_snd_es18xx_put_mux.map4Source:         ; @snd_es18xx_put_mux.map4Source
	.ascii	"\000\002\006\007"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_es18xx_put_mux
.subsections_via_symbols
