	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avio_write_marker              ## -- Begin function avio_write_marker
	.p2align	4, 0x90
_avio_write_marker:                     ## @avio_write_marker
	.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, %rbx
	movq	_AVIO_DATA_MARKER_FLUSH_POINT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	subq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jl	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avio_flush                     ## TAILCALL
LBB0_3:
	cmpl	$0, 40(%rbx)
	je	LBB0_12
## %bb.4:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	_AVIO_DATA_MARKER_BOUNDARY_POINT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_5
## %bb.6:
	cmpq	$0, 32(%rbx)
	movq	_AVIO_DATA_MARKER_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovnel	%eax, %r15d
	cmpl	%eax, %r15d
	je	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movq	_AVIO_DATA_MARKER_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jne	LBB0_9
LBB0_8:
	movl	24(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_12
LBB0_9:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.10:
	cmpl	24(%rbx), %r15d
	je	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_avio_flush
	movl	%r15d, 24(%rbx)
	movl	%r14d, 28(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_DATA_MARKER_FLUSH_POINT,4,2 ## @AVIO_DATA_MARKER_FLUSH_POINT
	.comm	_AVIO_DATA_MARKER_BOUNDARY_POINT,4,2 ## @AVIO_DATA_MARKER_BOUNDARY_POINT
	.comm	_AVIO_DATA_MARKER_UNKNOWN,4,2   ## @AVIO_DATA_MARKER_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avio_write_marker              ; -- Begin function avio_write_marker
	.p2align	2
_avio_write_marker:                     ; @avio_write_marker
	.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, x0
Lloh0:
	adrp	x8, _AVIO_DATA_MARKER_FLUSH_POINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVIO_DATA_MARKER_FLUSH_POINT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x9, [x19]
	ldr	x10, [x19, #16]
	sub	x8, x8, x9
	cmp	x8, x10
	b.lt	LBB0_11
; %bb.2:
	mov	x0, x19
	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	_avio_flush
LBB0_3:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_11
; %bb.4:
	mov	x21, x2
	mov	x20, x1
Lloh3:
	adrp	x8, _AVIO_DATA_MARKER_BOUNDARY_POINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVIO_DATA_MARKER_BOUNDARY_POINT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.5:
	ldr	x9, [x19, #32]
Lloh6:
	adrp	x8, _AVIO_DATA_MARKER_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVIO_DATA_MARKER_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w21, w21, w8, eq
	cmp	w21, w8
	b.eq	LBB0_7
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _AVIO_DATA_MARKER_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVIO_DATA_MARKER_UNKNOWN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_8
LBB0_7:
	ldr	w8, [x19, #24]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_11
LBB0_8:
	and	w8, w21, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x19, #24]
	cmp	w21, w8
	b.eq	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_avio_flush
	stp	w21, w20, [x19, #24]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_DATA_MARKER_FLUSH_POINT,4,2 ; @AVIO_DATA_MARKER_FLUSH_POINT
	.comm	_AVIO_DATA_MARKER_BOUNDARY_POINT,4,2 ; @AVIO_DATA_MARKER_BOUNDARY_POINT
	.comm	_AVIO_DATA_MARKER_UNKNOWN,4,2   ; @AVIO_DATA_MARKER_UNKNOWN
.subsections_via_symbols
