	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb16_set_dma_mode
_snd_sb16_set_dma_mode:                 ## @snd_sb16_set_dma_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	js	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rdi)
	js	LBB0_6
## %bb.2:
	cmpl	$2, %esi
	je	LBB0_9
## %bb.3:
	cmpl	$1, %esi
	je	LBB0_10
## %bb.4:
	testl	%esi, %esi
	jne	LBB0_7
## %bb.5:
	movq	$0, 16(%rdi)
	jmp	LBB0_8
LBB0_6:
	movl	%esi, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_SB_MODE_CAPTURE_16@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_SB_MODE_PLAYBACK_16@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SB_MODE_PLAYBACK_16,8,3        ## @SB_MODE_PLAYBACK_16
	.comm	_SB_MODE_CAPTURE_16,8,3         ## @SB_MODE_CAPTURE_16
	.no_dead_strip	_snd_sb16_set_dma_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sb16_set_dma_mode
_snd_sb16_set_dma_mode:                 ; @snd_sb16_set_dma_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0]
	tbnz	x9, #63, LBB0_7
; %bb.1:
	mov	x8, x0
	ldr	x9, [x0, #8]
	tbnz	x9, #63, LBB0_7
; %bb.2:
	cmp	w1, #2
	b.eq	LBB0_9
; %bb.3:
	cmp	w1, #1
	b.eq	LBB0_10
; %bb.4:
	cbnz	w1, LBB0_8
; %bb.5:
	mov	w0, #0
	str	xzr, [x8, #16]
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x1
	bl	_snd_BUG_ON
	cbz	x0, LBB0_6
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
Lloh3:
	adrp	x9, _SB_MODE_CAPTURE_16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SB_MODE_CAPTURE_16@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
Lloh5:
	adrp	x9, _SB_MODE_PLAYBACK_16@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SB_MODE_PLAYBACK_16@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	str	x9, [x8, #16]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SB_MODE_PLAYBACK_16,8,3        ; @SB_MODE_PLAYBACK_16
	.comm	_SB_MODE_CAPTURE_16,8,3         ; @SB_MODE_CAPTURE_16
	.no_dead_strip	_snd_sb16_set_dma_mode
.subsections_via_symbols
