	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_pe_stream                ## -- Begin function parse_pe_stream
	.p2align	4, 0x90
_parse_pe_stream:                       ## @parse_pe_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stream_file_get_size
	movl	-36(%rbp), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_stream_file_get_data
	xorl	%eax, %eax
	callq	_r_list_new
	movl	%eax, (%r14)
	cmpl	$0, -36(%rbp)
	jle	LBB0_5
## %bb.2:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	leaq	(%r12,%r15), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_r_list_append
	addq	$4, %r15
	cmpl	-36(%rbp), %r15d
	jl	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	callq	_free
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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_pe_stream                ; -- Begin function parse_pe_stream
	.p2align	2
_parse_pe_stream:                       ; @parse_pe_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, #12]
	add	x1, sp, #12
	mov	x0, x21
	bl	_stream_file_get_size
	ldr	w0, [sp, #12]
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_stream_file_get_data
	bl	_r_list_new
	str	w0, [x19]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	add	x1, x20, x22
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
	mov	x1, x21
	bl	_r_list_append
	ldr	w8, [sp, #12]
	add	x22, x22, #4
	cmp	w22, w8
	b.lt	LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_free
LBB0_6:
	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
