	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_bin_mdmp_patch_pe_headers
_r_bin_mdmp_patch_pe_headers:           ## @r_bin_mdmp_patch_pe_headers
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	movl	$8, %ecx
	callq	_r_buf_read_at
	movq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$16, %ecx
	callq	_r_buf_read_at
	cmpl	$0, -64(%rbp)
	jle	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx
	leaq	(%rcx,%rax), %rbx
	addq	$8, %rbx
	xorl	%r12d, %r12d
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_r_buf_read_at
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_r_buf_write_at
	incq	%r12
	movslq	-64(%rbp), %rax
	addq	$8, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	movl	$1, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_r_bin_mdmp_patch_pe_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_bin_mdmp_patch_pe_headers
_r_bin_mdmp_patch_pe_headers:           ; @r_bin_mdmp_patch_pe_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	x2, sp, #24
	mov	x1, #0
	mov	w3, #8
	bl	_r_buf_read_at
	ldr	x1, [sp, #24]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #16
	bl	_r_buf_read_at
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	ldp	x9, x8, [sp, #16]
	add	x8, x9, x8
	add	x20, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #8
	bl	_r_buf_read_at
	ldr	w8, [sp]
	str	w8, [sp, #4]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #8
	bl	_r_buf_write_at
	add	x21, x21, #1
	ldrsw	x8, [sp, #8]
	add	x20, x20, #8
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_r_bin_mdmp_patch_pe_headers
.subsections_via_symbols
