	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_recmask
_set_recmask:                           ## @set_recmask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	andl	(%rdi), %r12d
	movl	%r12d, -44(%rbp)
	movl	$-132, %eax
	addl	4(%rdi), %eax
	cmpl	$4, %eax
	ja	LBB0_21
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leal	-132(%r12), %eax
	cmpl	$-4, %eax
	ja	LBB0_6
## %bb.5:
	movl	8(%r14), %eax
	notl	%eax
	andl	%eax, %r12d
	leal	-132(%r12), %eax
	cmpl	$-3, %eax
	movl	$129, %eax
	cmovael	%r12d, %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %r12d
LBB0_6:
	cmpl	8(%r14), %r12d
	je	LBB0_21
## %bb.7:
	cmpl	$131, %r12d
	je	LBB0_12
## %bb.8:
	cmpl	$130, %r12d
	je	LBB0_11
## %bb.9:
	cmpl	$129, %r12d
	movq	_SRC__MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.14:
	movl	$129, -44(%rbp)
	movl	$129, %r12d
LBB0_15:
	movl	12(%r14), %eax
	movq	_SUBMDL_ALS007@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.22:
	movq	_ALS007_RECORD_SRC@GOTPCREL(%rip), %rax
	cmpl	$128, %r12d
	je	LBB0_28
## %bb.23:
	cmpl	$131, %r12d
	je	LBB0_27
## %bb.24:
	cmpl	$130, %r12d
	jne	LBB0_29
## %bb.25:
	movl	(%rax), %esi
	movq	_ALS007_LINE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_2:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ess_set_recmask
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movl	-44(%rbp), %r12d
	jmp	LBB0_4
LBB0_16:
	movq	_SOUND_MIXER_NRDEVICES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_SB16_IMASK_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_sb_setmixer
	movq	_SB16_IMASK_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r13b, %edx
	movq	%r14, %rdi
	callq	_sb_setmixer
	incq	%rbx
	movq	_SOUND_MIXER_NRDEVICES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r12d
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_sb16_recmasks_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orb	(%rax,%rbx), %r15b
	movq	_sb16_recmasks_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orb	(%rax,%rbx), %r13b
	jmp	LBB0_20
LBB0_12:
	movq	_SRC__CD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_SRC__LINE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_recsrc
	jmp	LBB0_21
LBB0_28:
	movl	(%rax), %esi
	movq	_ALS007_SYNTH@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_27:
	movl	(%rax), %esi
	movq	_ALS007_CD@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_29:
	movl	(%rax), %esi
	movq	_ALS007_MIC@GOTPCREL(%rip), %rax
LBB0_26:
	movzbl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sb_setmixer
LBB0_21:
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_SRC__MIC,4,2                   ## @SRC__MIC
	.comm	_SRC__LINE,4,2                  ## @SRC__LINE
	.comm	_SRC__CD,4,2                    ## @SRC__CD
	.comm	_SUBMDL_ALS007,4,2              ## @SUBMDL_ALS007
	.comm	_ALS007_RECORD_SRC,4,2          ## @ALS007_RECORD_SRC
	.comm	_ALS007_LINE,1,0                ## @ALS007_LINE
	.comm	_ALS007_CD,1,0                  ## @ALS007_CD
	.comm	_ALS007_SYNTH,1,0               ## @ALS007_SYNTH
	.comm	_ALS007_MIC,1,0                 ## @ALS007_MIC
	.comm	_SOUND_MIXER_NRDEVICES,4,2      ## @SOUND_MIXER_NRDEVICES
	.comm	_sb16_recmasks_L,8,3            ## @sb16_recmasks_L
	.comm	_sb16_recmasks_R,8,3            ## @sb16_recmasks_R
	.comm	_SB16_IMASK_L,4,2               ## @SB16_IMASK_L
	.comm	_SB16_IMASK_R,4,2               ## @SB16_IMASK_R
	.no_dead_strip	_set_recmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_recmask
_set_recmask:                           ; @set_recmask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldp	w8, w9, [x0]
	and	w20, w8, w1
	str	w20, [sp, #12]
	sub	w8, w9, #132
	cmp	w8, #4
	b.hi	LBB0_29
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	sub	w8, w20, #132
	cmn	w8, #4
	b.hi	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	bic	w8, w20, w8
	sub	w9, w8, #132
	cmn	w9, #3
	mov	w9, #129
	csel	w20, w9, w8, lo
	str	w20, [sp, #12]
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.eq	LBB0_29
; %bb.5:
	cmp	w20, #131
	b.eq	LBB0_22
; %bb.6:
	cmp	w20, #130
	b.eq	LBB0_23
; %bb.7:
	cmp	w20, #129
Lloh2:
	adrp	x8, _SRC__MIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SRC__MIC@GOTPAGEOFF]
	b	LBB0_24
LBB0_8:
	cbnz	w20, LBB0_10
; %bb.9:
	mov	w20, #129
	str	w20, [sp, #12]
LBB0_10:
	ldr	w8, [x19, #12]
Lloh4:
	adrp	x9, _SUBMDL_ALS007@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SUBMDL_ALS007@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.11:
Lloh7:
	adrp	x8, _ALS007_RECORD_SRC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ALS007_RECORD_SRC@GOTPAGEOFF]
	cmp	w20, #128
	b.eq	LBB0_25
; %bb.12:
	cmp	w20, #131
	b.eq	LBB0_26
; %bb.13:
	cmp	w20, #130
	b.ne	LBB0_27
; %bb.14:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ALS007_LINE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ALS007_LINE@GOTPAGEOFF]
	b	LBB0_28
LBB0_15:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ess_set_recmask
	cbnz	w0, LBB0_29
; %bb.16:
	ldr	w20, [sp, #12]
	b	LBB0_2
LBB0_17:
Lloh11:
	adrp	x21, _SOUND_MIXER_NRDEVICES@GOTPAGE
Lloh12:
	ldr	x21, [x21, _SOUND_MIXER_NRDEVICES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.18:
	mov	x22, #0
	mov	w23, #0
	mov	w24, #0
Lloh13:
	adrp	x25, _SB16_IMASK_L@GOTPAGE
Lloh14:
	ldr	x25, [x25, _SB16_IMASK_L@GOTPAGEOFF]
Lloh15:
	adrp	x26, _SB16_IMASK_R@GOTPAGE
Lloh16:
	ldr	x26, [x26, _SB16_IMASK_R@GOTPAGEOFF]
Lloh17:
	adrp	x27, _sb16_recmasks_L@GOTPAGE
Lloh18:
	ldr	x27, [x27, _sb16_recmasks_L@GOTPAGEOFF]
Lloh19:
	adrp	x28, _sb16_recmasks_R@GOTPAGE
Lloh20:
	ldr	x28, [x28, _sb16_recmasks_R@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w1, [x25]
	and	w2, w24, #0xff
	mov	x0, x19
	bl	_sb_setmixer
	ldr	w1, [x26]
	and	w2, w23, #0xff
	mov	x0, x19
	bl	_sb_setmixer
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_29
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w22
	tbz	w8, #0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x27]
	ldrb	w8, [x8, x22]
	orr	w24, w8, w24
	ldr	x8, [x28]
	ldrb	w8, [x8, x22]
	orr	w23, w8, w23
	b	LBB0_19
LBB0_22:
Lloh21:
	adrp	x8, _SRC__CD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SRC__CD@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh23:
	adrp	x8, _SRC__LINE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SRC__LINE@GOTPAGEOFF]
LBB0_24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_recsrc
	b	LBB0_29
LBB0_25:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _ALS007_SYNTH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ALS007_SYNTH@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _ALS007_CD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ALS007_CD@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _ALS007_MIC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ALS007_MIC@GOTPAGEOFF]
LBB0_28:
	ldrb	w2, [x8]
	mov	x0, x19
	bl	_sb_setmixer
LBB0_29:
	ldr	w0, [sp, #12]
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_SRC__MIC,4,2                   ; @SRC__MIC
	.comm	_SRC__LINE,4,2                  ; @SRC__LINE
	.comm	_SRC__CD,4,2                    ; @SRC__CD
	.comm	_SUBMDL_ALS007,4,2              ; @SUBMDL_ALS007
	.comm	_ALS007_RECORD_SRC,4,2          ; @ALS007_RECORD_SRC
	.comm	_ALS007_LINE,1,0                ; @ALS007_LINE
	.comm	_ALS007_CD,1,0                  ; @ALS007_CD
	.comm	_ALS007_SYNTH,1,0               ; @ALS007_SYNTH
	.comm	_ALS007_MIC,1,0                 ; @ALS007_MIC
	.comm	_SOUND_MIXER_NRDEVICES,4,2      ; @SOUND_MIXER_NRDEVICES
	.comm	_sb16_recmasks_L,8,3            ; @sb16_recmasks_L
	.comm	_sb16_recmasks_R,8,3            ; @sb16_recmasks_R
	.comm	_SB16_IMASK_L,4,2               ; @SB16_IMASK_L
	.comm	_SB16_IMASK_R,4,2               ; @SB16_IMASK_R
	.no_dead_strip	_set_recmask
.subsections_via_symbols
