	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_omap_stream              ## -- Begin function parse_omap_stream
	.p2align	4, 0x90
_parse_omap_stream:                     ## @parse_omap_stream
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$0, -48(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stream_file_get_size
	movl	-44(%rbp), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_stream_file_get_data
	movq	$0, 8(%r12)
	xorl	%eax, %eax
	callq	_r_list_new
	movl	%eax, (%r12)
	cmpl	$0, -44(%rbp)
	jle	LBB0_7
## %bb.2:
	leaq	-48(%rbp), %r15
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_parse_omap_entry
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	addq	%rax, %r13
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_r_list_append
	movl	-48(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jl	LBB0_3
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	movq	%r14, %rdi
	callq	_free
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_omap_stream              ; -- Begin function parse_omap_stream
	.p2align	2
_parse_omap_stream:                     ; @parse_omap_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	add	x1, sp, #12
	mov	x0, x21
	bl	_stream_file_get_size
	ldr	w0, [sp, #12]
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_stream_file_get_data
	str	xzr, [x19, #8]
	bl	_r_list_new
	str	w0, [x19]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w1, [sp, #12]
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, x22
	bl	_parse_omap_entry
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, w0, sxtw
	ldr	w0, [x19]
	mov	x1, x22
	bl	_r_list_append
	ldp	w8, w9, [sp, #8]
	cmp	w8, w9
	b.lt	LBB0_3
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_free
LBB0_7:
	mov	x0, x20
	bl	_free
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
