	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saimixer_init
_saimixer_init:                         ## @saimixer_init
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_mix_getdevinfo
	movq	8(%rax), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_SOUND_MASK_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %edi
	callq	_snd_mtxlock
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_pcm_getflags
	movq	_SD_F_SOFTPCMVOL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pcm_setflags
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mix_setdevs
	movl	(%r12), %edi
	callq	_snd_mtxunlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOUND_MASK_PCM,4,2             ## @SOUND_MASK_PCM
	.comm	_SD_F_SOFTPCMVOL,4,2            ## @SD_F_SOFTPCMVOL
	.no_dead_strip	_saimixer_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saimixer_init
_saimixer_init:                         ; @saimixer_init
	.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, x0
	bl	_mix_getdevinfo
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _SOUND_MASK_PCM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOUND_MASK_PCM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x22]
	bl	_snd_mtxlock
	ldr	w20, [x20]
	mov	x0, x20
	bl	_pcm_getflags
Lloh3:
	adrp	x8, _SD_F_SOFTPCMVOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_F_SOFTPCMVOL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_pcm_setflags
	mov	x0, x19
	mov	x1, x21
	bl	_mix_setdevs
	ldr	w0, [x22]
	bl	_snd_mtxunlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOUND_MASK_PCM,4,2             ; @SOUND_MASK_PCM
	.comm	_SD_F_SOFTPCMVOL,4,2            ; @SD_F_SOFTPCMVOL
	.no_dead_strip	_saimixer_init
.subsections_via_symbols
