	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_nm256_set_format
_snd_nm256_set_format:                  ## @snd_nm256_set_format
	.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
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r14
	movl	4(%r14), %edi
	callq	_snd_nm256_fixed_rate
	movl	%eax, %r12d
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	_NM_RATE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	$0, (%r13)
	movl	8(%r14), %edi
	callq	_snd_pcm_format_width
	cmpl	$16, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NM_RATE_BITS_16@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	incq	(%r13)
LBB0_2:
	cmpl	$2, (%r14)
	jl	LBB0_4
## %bb.3:
	movq	_NM_RATE_STEREO@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	incq	(%r13)
LBB0_4:
	movq	_samplerates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	movq	_NM_RECORD_REG_OFFSET@GOTPCREL(%rip), %r14
	movl	$1, %esi
	jmp	LBB0_8
LBB0_5:
	movq	_NM_PLAYBACK_REG_OFFSET@GOTPCREL(%rip), %r14
	xorl	%esi, %esi
LBB0_8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_snd_nm256_load_coefficient
	movq	_NM_RATE_REG_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movzbl	%bl, %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_nm256_writeb               ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NM_RATE_MASK,4,2               ## @NM_RATE_MASK
	.comm	_NM_RATE_BITS_16,1,0            ## @NM_RATE_BITS_16
	.comm	_NM_RATE_STEREO,1,0             ## @NM_RATE_STEREO
	.comm	_samplerates,8,3                ## @samplerates
	.comm	_NM_PLAYBACK_REG_OFFSET,8,3     ## @NM_PLAYBACK_REG_OFFSET
	.comm	_NM_RATE_REG_OFFSET,8,3         ## @NM_RATE_REG_OFFSET
	.comm	_NM_RECORD_REG_OFFSET,8,3       ## @NM_RECORD_REG_OFFSET
	.no_dead_strip	_snd_nm256_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_nm256_set_format
_snd_nm256_set_format:                  ; @snd_nm256_set_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x2, #8]
	ldr	w0, [x24, #4]
	bl	_snd_nm256_fixed_rate
	mov	x20, x0
Lloh0:
	adrp	x8, _NM_RATE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NM_RATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w23, w8, w0, lsl #4
	str	xzr, [x22]
	ldr	w0, [x24, #8]
	bl	_snd_pcm_format_width
	cmp	w0, #16
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NM_RATE_BITS_16@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NM_RATE_BITS_16@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w23, w8, w23
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
LBB0_2:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _NM_RATE_STEREO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NM_RATE_STEREO@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w23, w8, w23
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
LBB0_4:
Lloh7:
	adrp	x8, _samplerates@GOTPAGE
Lloh8:
	ldr	x8, [x8, _samplerates@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, sxtw #2]
	str	w8, [x24, #4]
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.6:
Lloh10:
	adrp	x21, _NM_RECORD_REG_OFFSET@GOTPAGE
Lloh11:
	ldr	x21, [x21, _NM_RECORD_REG_OFFSET@GOTPAGEOFF]
	mov	w1, #1
	b	LBB0_8
LBB0_7:
	mov	w1, #0
Lloh12:
	adrp	x21, _NM_PLAYBACK_REG_OFFSET@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NM_PLAYBACK_REG_OFFSET@GOTPAGEOFF]
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_snd_nm256_load_coefficient
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _NM_RATE_REG_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NM_RATE_REG_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	and	w2, w23, #0xff
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_nm256_writeb
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NM_RATE_MASK,4,2               ; @NM_RATE_MASK
	.comm	_NM_RATE_BITS_16,1,0            ; @NM_RATE_BITS_16
	.comm	_NM_RATE_STEREO,1,0             ; @NM_RATE_STEREO
	.comm	_samplerates,8,3                ; @samplerates
	.comm	_NM_PLAYBACK_REG_OFFSET,8,3     ; @NM_PLAYBACK_REG_OFFSET
	.comm	_NM_RATE_REG_OFFSET,8,3         ; @NM_RATE_REG_OFFSET
	.comm	_NM_RECORD_REG_OFFSET,8,3       ; @NM_RECORD_REG_OFFSET
	.no_dead_strip	_snd_nm256_set_format
.subsections_via_symbols
