	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_frame_header
_write_frame_header:                    ## @write_frame_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$65528, %edx                    ## imm = 0xFFF8
	callq	_put_bits
	movq	24(%r14), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	32(%r14), %eax
	movq	_FLAC_CHMODE_INDEPENDENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%r14), %edx
	decl	%edx
	jmp	LBB0_3
LBB0_2:
	movq	_FLAC_MAX_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %edx
	decl	%edx
LBB0_3:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	12(%r14), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_write_utf8
	movq	24(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$6, %ecx
	je	LBB0_4
## %bb.5:
	cmpl	$7, %ecx
	jne	LBB0_8
## %bb.6:
	movl	$16, %esi
	jmp	LBB0_7
LBB0_4:
	movl	$8, %esi
LBB0_7:
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_put_bits
LBB0_8:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	$8, %esi
	cmpl	$12, %ecx
	je	LBB0_10
## %bb.9:
	movl	$16, %esi
	jle	LBB0_11
LBB0_10:
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_put_bits
LBB0_11:
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	_AV_CRC_8_ATM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_crc_get_table
	movl	%eax, %r14d
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_put_bits_count
	sarl	$3, %eax
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_av_crc
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_CHMODE_INDEPENDENT,4,2    ## @FLAC_CHMODE_INDEPENDENT
	.comm	_FLAC_MAX_CHANNELS,4,2          ## @FLAC_MAX_CHANNELS
	.comm	_AV_CRC_8_ATM,4,2               ## @AV_CRC_8_ATM
	.no_dead_strip	_write_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_frame_header
_write_frame_header:                    ; @write_frame_header
	.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, x0
	add	x19, x0, #16
	mov	x0, x19
	mov	w1, #16
	mov	w2, #65528
	bl	_put_bits
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w8, [x20, #32]
Lloh0:
	adrp	x9, _FLAC_CHMODE_INDEPENDENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAC_CHMODE_INDEPENDENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x9, _FLAC_MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLAC_MAX_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w9
LBB0_3:
	sub	w2, w8, #1
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #3
	bl	_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_write_utf8
	ldr	x8, [x20, #24]
	ldr	w9, [x8]
	cmp	w9, #6
	b.eq	LBB0_6
; %bb.4:
	cmp	w9, #7
	b.ne	LBB0_8
; %bb.5:
	mov	w1, #16
	b	LBB0_7
LBB0_6:
	mov	w1, #8
LBB0_7:
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_put_bits
LBB0_8:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #12
	b.ne	LBB0_10
; %bb.9:
	mov	w1, #8
	b	LBB0_12
LBB0_10:
	cmp	w9, #13
	b.lt	LBB0_13
; %bb.11:
	mov	w1, #16
LBB0_12:
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_put_bits
LBB0_13:
	mov	x0, x19
	bl	_flush_put_bits
Lloh6:
	adrp	x8, _AV_CRC_8_ATM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_CRC_8_ATM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_av_crc_get_table
	mov	x20, x0
	ldr	w21, [x19]
	mov	x0, x19
	bl	_put_bits_count
	asr	w3, w0, #3
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_av_crc
	mov	x2, x0
	mov	x0, x19
	mov	w1, #8
	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	_put_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_CHMODE_INDEPENDENT,4,2    ; @FLAC_CHMODE_INDEPENDENT
	.comm	_FLAC_MAX_CHANNELS,4,2          ; @FLAC_MAX_CHANNELS
	.comm	_AV_CRC_8_ATM,4,2               ; @AV_CRC_8_ATM
	.no_dead_strip	_write_frame_header
.subsections_via_symbols
