	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av_bprint_utf8
_av_bprint_utf8:                        ## @av_bprint_utf8
	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	cmpl	$127, %esi
	ja	LBB0_1
## %bb.5:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_bprint_chars                ## TAILCALL
LBB0_1:
	movl	%r13d, %edi
	callq	_av_log2
	movl	%eax, %r12d
	leal	-2(%r12), %eax
	cltq
	imulq	$1717986919, %rax, %r15         ## imm = 0x66666667
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$33, %r15
	addl	%eax, %r15d
	leal	(%r15,%r15), %eax
	leal	(%rax,%rax,2), %ecx
	movl	%r13d, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movl	$65408, %edx                    ## imm = 0xFF80
	movl	%r15d, %ecx
	shrl	%cl, %edx
	movzbl	%dl, %esi
	orl	%eax, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_av_bprint_chars
	cmpl	$7, %r12d
	jl	LBB0_4
## %bb.2:
	movl	%r15d, %r12d
	incl	%r12d
	leal	(%r15,%r15,2), %eax
	leal	(%rax,%rax), %ebx
	addl	$-6, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %esi
	movl	%ebx, %ecx
	shrl	%cl, %esi
	andl	$63, %esi
	orl	$128, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_av_bprint_chars
	decl	%r12d
	addl	$-6, %ebx
	cmpl	$1, %r12d
	jg	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_av_bprint_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function av_bprint_utf8
_av_bprint_utf8:                        ; @av_bprint_utf8
	.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
	mov	x20, x0
	cmp	w1, #127
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	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
	b	_av_bprint_chars
LBB0_2:
	mov	x0, x19
	bl	_av_log2
	mov	x21, x0
	sub	w8, w0, #2
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w22, w8, w9
	add	w8, w22, w22, lsl #1
	lsl	w8, w8, #1
	lsr	w8, w19, w8
	mov	w9, #65408
	lsr	w9, w9, w22
	and	w9, w9, #0xff
	orr	w1, w8, w9
	mov	x0, x20
	mov	w2, #1
	bl	_av_bprint_chars
	cmp	w21, #7
	b.lt	LBB0_5
; %bb.3:
	add	w21, w22, #1
	mov	w8, #6
	mul	w8, w22, w8
	sub	w22, w8, #6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w19, w22
	mov	w1, #128
	bfxil	w1, w8, #0, #6
	mov	x0, x20
	mov	w2, #1
	bl	_av_bprint_chars
	sub	w21, w21, #1
	sub	w22, w22, #6
	cmp	w21, #1
	b.gt	LBB0_4
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_av_bprint_utf8
.subsections_via_symbols
