	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_harmony_set_data_format
_snd_harmony_set_data_format:           ## @snd_harmony_set_data_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	cmpl	$130, %esi
	jne	LBB0_1
## %bb.2:
	movq	_HARMONY_DF_8BIT_ALAW@GOTPCREL(%rip), %rax
	cmpl	$129, %ebx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_HARMONY_DF_16BIT_LINEAR@GOTPCREL(%rip), %rax
	cmpl	$129, %ebx
	jne	LBB0_5
LBB0_4:
	movq	_HARMONY_DF_8BIT_ULAW@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	testl	%edx, %edx
	jne	LBB0_7
## %bb.6:
	cmpl	%r14d, 4(%rdi)
	je	LBB0_8
LBB0_7:
	movl	(%rdi), %r15d
	movq	_SILENCE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_snd_pcm_format_physical_width
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_snd_pcm_format_set_silence
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HARMONY_DF_16BIT_LINEAR,4,2    ## @HARMONY_DF_16BIT_LINEAR
	.comm	_HARMONY_DF_8BIT_ALAW,4,2       ## @HARMONY_DF_8BIT_ALAW
	.comm	_HARMONY_DF_8BIT_ULAW,4,2       ## @HARMONY_DF_8BIT_ULAW
	.comm	_SILENCE_BUFSZ,4,2              ## @SILENCE_BUFSZ
	.no_dead_strip	_snd_harmony_set_data_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_harmony_set_data_format
_snd_harmony_set_data_format:           ; @snd_harmony_set_data_format
	.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, x1
Lloh0:
	adrp	x8, _HARMONY_DF_8BIT_ULAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HARMONY_DF_8BIT_ULAW@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HARMONY_DF_8BIT_ALAW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HARMONY_DF_8BIT_ALAW@GOTPAGEOFF]
Lloh4:
	adrp	x10, _HARMONY_DF_16BIT_LINEAR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _HARMONY_DF_16BIT_LINEAR@GOTPAGEOFF]
	cmp	w1, #130
	csel	x9, x9, x10, eq
	cmp	w1, #129
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	cbnz	w2, LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, w20
	b.eq	LBB0_3
LBB0_2:
	ldr	w21, [x0]
Lloh6:
	adrp	x8, _SILENCE_BUFSZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SILENCE_BUFSZ@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_snd_pcm_format_physical_width
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	sdiv	w2, w22, w8
	mov	x0, x19
	mov	x1, x21
	bl	_snd_pcm_format_set_silence
LBB0_3:
	mov	x0, x20
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HARMONY_DF_16BIT_LINEAR,4,2    ; @HARMONY_DF_16BIT_LINEAR
	.comm	_HARMONY_DF_8BIT_ALAW,4,2       ; @HARMONY_DF_8BIT_ALAW
	.comm	_HARMONY_DF_8BIT_ULAW,4,2       ; @HARMONY_DF_8BIT_ULAW
	.comm	_SILENCE_BUFSZ,4,2              ; @SILENCE_BUFSZ
	.no_dead_strip	_snd_harmony_set_data_format
.subsections_via_symbols
