	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_sample_fmt
_encode_sample_fmt:                     ## @encode_sample_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	xorl	%edx, %edx
	cmpl	$0, 12(%rdi)
	sete	%dl
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	cmpl	$0, 12(%rbx)
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%esi, %esi
	cmpl	$1, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	4(%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	addl	%ecx, %ecx
	testl	%eax, %eax
	movl	$1, %esi
	cmovnel	%ecx, %esi
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_vc2_ue_uint                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_encode_sample_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_sample_fmt
_encode_sample_fmt:                     ; @encode_sample_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x19, x0, #8
	ldr	w8, [x0, #12]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x19
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	cset	w9, eq
	lsl	w9, w9, #1
	cmp	w8, #0
	csinc	w1, w9, wzr, ne
	b	LBB0_5
LBB0_4:
	mov	w1, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_vc2_ue_uint
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_encode_sample_fmt
.subsections_via_symbols
