	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_subframes
_write_subframes:                       ## @write_subframes
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_26
## %bb.1:
	leaq	4(%rdi), %r12
	xorl	%r14d, %r14d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13,%rsi), %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_put_sbits
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %rax
	cmpq	%rax, %r14
	jge	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
                                        ##     Child Loop BB0_11 Depth 2
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r13
	movq	%r14, %rbx
	shlq	$6, %rbx
	movq	40(%r13,%rbx), %r15
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	(%r13,%rbx), %edx
	movq	%r12, %rdi
	movl	$6, %esi
	callq	_put_bits
	xorl	%edx, %edx
	cmpl	$0, 4(%r13,%rbx)
	setne	%dl
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r13,%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_put_bits
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%r13,%rsi), %rax
	movq	_FLAC_SUBFRAME_CONSTANT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%r15,%rdi,4), %rdx
	movq	_FLAC_SUBFRAME_VERBATIM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdi, %rdi
	jle	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %r14
	leaq	(%rsi,%r13), %rbx
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movl	(%r15), %edx
	addq	$4, %r15
	movq	%r12, %rdi
	callq	_put_sbits
	cmpq	%r14, %r15
	jb	LBB0_11
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%r13), %rcx
	addq	$20, %rcx
	cmpl	$0, 20(%r13,%rsi)
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%r13), %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	movq	%rcx, %r14
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx), %esi
	movl	(%r15), %edx
	addq	$4, %r15
	movq	%r12, %rdi
	callq	_put_sbits
	incl	%r13d
	cmpl	(%r14), %r13d
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %r14
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_FLAC_SUBFRAME_LPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	56(%rax,%rcx), %edx
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_sbits
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r13
	addq	$48, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_put_sbits
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	24(%rbx,%r14), %edx
	addl	$-4, %edx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_put_bits
	movl	28(%rbx,%r14), %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r13d, %ecx
	shrq	%cl, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%r13d, %edx
	callq	_put_bits
	cmpl	$31, %r13d
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r14), %rax
	addq	$40, %rax
	movl	$1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r13
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	(%rax), %r13
	cmpl	$2, %edx
	movl	$1, %eax
	cmovll	%eax, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_FFMIN
	movq	%rax, %r13
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%r14, %r12
	je	LBB0_25
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-8(%rcx), %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rdx,4), %ebx
	movl	-16(%rcx), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_put_bits
	movq	%r12, %r14
	cmpq	%r13, %r15
	jae	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	_INT32_MAX@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_21 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r15), %esi
	addq	$4, %r15
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	_set_sr_golomb_flac
	cmpq	%r13, %r15
	jb	LBB0_23
	jmp	LBB0_24
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_SUBFRAME_CONSTANT,8,3     ## @FLAC_SUBFRAME_CONSTANT
	.comm	_FLAC_SUBFRAME_VERBATIM,8,3     ## @FLAC_SUBFRAME_VERBATIM
	.comm	_FLAC_SUBFRAME_LPC,8,3          ## @FLAC_SUBFRAME_LPC
	.comm	_INT32_MAX,4,2                  ## @INT32_MAX
	.no_dead_strip	_write_subframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_subframes
_write_subframes:                       ; @write_subframes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x24, x0
	mov	x21, #0
	add	x20, x0, #4
Lloh0:
	adrp	x25, _INT32_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _INT32_MAX@GOTPAGEOFF]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x27, x21, lsl #6
	ldr	w1, [x8, #16]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_put_sbits
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x24, x21, [sp, #8]              ; 16-byte Folded Reload
	add	x21, x21, #1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.ge	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
                                        ;       Child Loop BB0_23 Depth 3
                                        ;     Child Loop BB0_10 Depth 2
	ldp	x19, x27, [x24, #8]
	add	x22, x27, x21, lsl #6
	mov	x26, x22
	ldr	x28, [x26, #40]!
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #6
	bl	_put_bits
	ldr	w8, [x22, #4]
	cmp	w8, #0
	cset	w2, ne
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	w1, [x22, #4]
	cbz	w1, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w2, #1
	bl	_put_bits
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]!
Lloh2:
	adrp	x9, _FLAC_SUBFRAME_CONSTANT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FLAC_SUBFRAME_CONSTANT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x28, x19, lsl #2
Lloh5:
	adrp	x9, _FLAC_SUBFRAME_VERBATIM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAC_SUBFRAME_VERBATIM@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x19, #1
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x27, x8, lsl #6
	add	x19, x8, #16
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x19]
	ldr	w2, [x28], #4
	mov	x0, x20
	bl	_put_sbits
	cmp	x28, x23
	b.lo	LBB0_10
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x26, [sp]                       ; 8-byte Folded Spill
	add	x9, x27, x21, lsl #6
	mov	x26, x9
	ldr	w10, [x26, #20]!
	cmp	w10, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #0
	add	x21, x9, #16
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21]
	ldr	w2, [x28], #4
	mov	x0, x20
	bl	_put_sbits
	add	w19, w19, #1
	ldr	w8, [x26]
	cmp	w19, w8
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x9, _FLAC_SUBFRAME_LPC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLAC_SUBFRAME_LPC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x24, #24]
	sub	w2, w22, #1
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x21, x27, x8, lsl #6
	ldr	w2, [x21, #56]
	mov	x0, x20
	mov	w1, #5
	bl	_put_sbits
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	add	x21, x21, #48
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	ldr	w2, [x8, x19, lsl #2]
	mov	x0, x20
	mov	x1, x22
	bl	_put_sbits
	add	x19, x19, #1
	ldrsw	x8, [x26]
	cmp	x19, x8
	b.lt	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x21, x27, x8, lsl #6
	mov	x19, x21
	ldr	w8, [x19, #24]!
	sub	w2, w8, #4
	mov	x0, x20
	mov	w1, #2
	bl	_put_bits
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w22, [x19, #4]
	ldr	x19, [x24, #8]
	mov	x0, x20
	mov	w1, #4
	mov	x2, x22
	bl	_put_bits
	cmp	w22, #31
	b.eq	LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x23
	mov	x26, #0
	lsr	x8, x19, x22
	sxtw	x19, w8
	mov	w8, #1
	lsl	w8, w8, w22
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	x9, [x9]
	add	x22, x9, x19, lsl #2
	add	x24, x21, #32
	cmp	w8, #1
	csinc	w21, w8, wzr, gt
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	add	x1, x22, x19, lsl #2
	mov	x0, x27
	bl	_FFMIN
	mov	x22, x0
	add	x26, x26, #1
	cmp	x26, x21
	b.eq	LBB0_3
LBB0_22:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_23 Depth 3
	ldr	x8, [x24]
	ldr	w23, [x8, x26, lsl #2]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_put_bits
	cmp	x28, x22
	b.hs	LBB0_21
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_22 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x28], #4
	ldr	w3, [x25]
	mov	x0, x20
	mov	x2, x23
	mov	w4, #0
	bl	_set_sr_golomb_flac
	cmp	x28, x22
	b.lo	LBB0_23
	b	LBB0_21
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_SUBFRAME_CONSTANT,8,3     ; @FLAC_SUBFRAME_CONSTANT
	.comm	_FLAC_SUBFRAME_VERBATIM,8,3     ; @FLAC_SUBFRAME_VERBATIM
	.comm	_FLAC_SUBFRAME_LPC,8,3          ; @FLAC_SUBFRAME_LPC
	.comm	_INT32_MAX,4,2                  ; @INT32_MAX
	.no_dead_strip	_write_subframes
.subsections_via_symbols
