	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_outmask
_set_outmask:                           ## @set_outmask
	.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
	cmpl	$128, 4(%rdi)
	jne	LBB0_7
## %bb.1:
	movl	12(%r14), %eax
	movq	_SUBMDL_ALS007@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.2:
	movq	_SOUND_MIXER_NRDEVICES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	movq	_SB16_OMASK@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_sb_setmixer
	incq	%rbx
	movq	_SOUND_MIXER_NRDEVICES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r12d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_sb16_recmasks_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sb16_recmasks_R@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orb	(%rax,%rbx), %r15b
	orb	(%rcx,%rbx), %r15b
	jmp	LBB0_6
LBB0_7:
	movl	%r12d, 8(%r14)
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUBMDL_ALS007,4,2              ## @SUBMDL_ALS007
	.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_OMASK,4,2                 ## @SB16_OMASK
	.no_dead_strip	_set_outmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_outmask
_set_outmask:                           ; @set_outmask
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	w8, w9, [x0]
	and	w20, w8, w1
	cmp	w9, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #12]
Lloh0:
	adrp	x9, _SUBMDL_ALS007@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUBMDL_ALS007@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _SOUND_MIXER_NRDEVICES@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SOUND_MIXER_NRDEVICES@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w8, w9
	ccmp	w10, #1, #8, ne
	b.ge	LBB0_3
LBB0_2:
	str	w20, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, #0
	mov	w23, #0
Lloh5:
	adrp	x24, _SB16_OMASK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SB16_OMASK@GOTPAGEOFF]
Lloh7:
	adrp	x25, _sb16_recmasks_L@GOTPAGE
Lloh8:
	ldr	x25, [x25, _sb16_recmasks_L@GOTPAGEOFF]
Lloh9:
	adrp	x26, _sb16_recmasks_R@GOTPAGE
Lloh10:
	ldr	x26, [x26, _sb16_recmasks_R@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24]
	and	w2, w23, #0xff
	mov	x0, x19
	bl	_sb_setmixer
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w22
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	ldrb	w8, [x8, x22]
	ldr	x9, [x26]
	ldrb	w9, [x9, x22]
	orr	w8, w8, w23
	orr	w23, w8, w9
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SUBMDL_ALS007,4,2              ; @SUBMDL_ALS007
	.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_OMASK,4,2                 ; @SB16_OMASK
	.no_dead_strip	_set_outmask
.subsections_via_symbols
