	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_access_unit
_write_access_unit:                     ## @write_access_unit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SUBSTREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	movl	$-1, %r12d
	cmpl	$4, %r13d
	jl	LBB0_9
## %bb.1:
	leaq	16(%r14), %r9
	leal	-4(%r13), %edx
	testl	%r15d, %r15d
	movq	%r14, %rax
	je	LBB0_2
## %bb.3:
	cmpl	$32, %r13d
	jb	LBB0_9
## %bb.4:
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movq	%rax, %r12
	movq	%r9, %rsi
	movq	%r8, %rbx
	callq	_write_major_sync
	movq	%r12, %rax
	movq	%rbx, %r8
	leaq	128(%r12), %r9
	addl	$-32, %r13d
	movl	%r13d, %edx
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %r14
LBB0_5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	movq	%r14, %r13
	je	LBB0_6
## %bb.7:
	leal	-1(%rax), %esi
	leaq	(%r9,%rsi,8), %rsi
	addq	$8, %rsi
	addl	%eax, %eax
	subl	%eax, %edx
	jmp	LBB0_8
LBB0_6:
	movq	%r9, %rsi
LBB0_8:
	movq	%r9, %r14
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movq	%r8, %rbx
	callq	_write_substrs
	movq	%rax, %r12
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subq	%rsi, %r12
	shrq	$2, %r12
	movl	%r12d, %ecx
	shrl	$31, %ecx
	addl	%r12d, %ecx
	sarl	%ecx
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	callq	_write_frame_headers
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SUBSTREAMS,4,2             ## @MAX_SUBSTREAMS
	.no_dead_strip	_write_access_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_access_unit
_write_access_unit:                     ; @write_access_unit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x8, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
Lloh3:
	adrp	x9, _MAX_SUBSTREAMS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_SUBSTREAMS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	x12, x9, #2
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	subs	w2, w2, #4
	b.lt	LBB0_3
; %bb.1:
	add	x23, x20, #16
	cbz	w19, LBB0_5
; %bb.2:
	subs	w24, w8, #32
	b.hs	LBB0_4
LBB0_3:
	mov	w24, #-1
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	mov	x1, x23
	bl	_write_major_sync
	add	x23, x20, #128
	mov	x2, x24
LBB0_5:
	ldr	w8, [x21]
	sub	w9, w8, #1
	add	x9, x23, w9, uxtw #3
	add	x9, x9, #8
	sub	w10, w2, w8, lsl #1
	cmp	w8, #0
	csel	w2, w2, w10, eq
	csel	x1, x23, x9, eq
	mov	x0, x21
	mov	x3, x19
	mov	x4, x22
	bl	_write_substrs
	sub	x8, x0, x20
	lsr	x24, x8, #2
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w3, w8, #1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x4, x19
	mov	x5, x22
	bl	_write_frame_headers
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x24
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SUBSTREAMS,4,2             ; @MAX_SUBSTREAMS
	.no_dead_strip	_write_access_unit
.subsections_via_symbols
