	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _vorbis_pack_comment
__vorbis_pack_comment:                  ## @_vorbis_pack_comment
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_ENCODE_VENDOR_STRING@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$8, %edx
	callq	_oggpack_write
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	__v_writestring
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$32, %edx
	callq	_oggpack_write
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	__v_writestring
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_oggpack_write
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_oggpack_write
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_oggpack_write
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax,%rbx,8), %rsi
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	callq	__v_writestring
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_oggpack_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENCODE_VENDOR_STRING,8,3       ## @ENCODE_VENDOR_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vorbis"

	.no_dead_strip	__vorbis_pack_comment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _vorbis_pack_comment
__vorbis_pack_comment:                  ; @_vorbis_pack_comment
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _ENCODE_VENDOR_STRING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENCODE_VENDOR_STRING@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	mov	w1, #3
	mov	w2, #8
	bl	_oggpack_write
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #6
	bl	__v_writestring
	mov	x0, x19
	mov	x1, x21
	mov	w2, #32
	bl	_oggpack_write
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	__v_writestring
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #32
	bl	_oggpack_write
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_oggpack_write
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	lsl	x22, x21, #2
	ldr	w1, [x8, x22]
	mov	x0, x19
	mov	w2, #32
	bl	_oggpack_write
	ldp	x8, x9, [x20, #8]
	ldr	x1, [x8, x21, lsl #3]
	ldr	w2, [x9, x22]
	mov	x0, x19
	bl	__v_writestring
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_oggpack_write
	mov	w0, #0
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENCODE_VENDOR_STRING,8,3       ; @ENCODE_VENDOR_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vorbis"

	.no_dead_strip	__vorbis_pack_comment
.subsections_via_symbols
