	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_memory_to_file
_dump_memory_to_file:                   ## @dump_memory_to_file
	.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
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)
	movq	_null_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_make_cleanup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_scan_filename_with_cleanup
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_3:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_scan_expression_with_cleanup
	movq	%rax, %r14
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	cmpb	$0, (%rbx)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	movq	-48(%rbp), %rbx
LBB0_6:
	movq	%r14, %rdi
	callq	_parse_and_eval_address
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_parse_and_eval_address
	movq	%rax, %rbx
	subq	%r14, %rbx
	jg	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_8:
	movq	%rbx, %rdi
	callq	_xmalloc
	movq	%rax, %r15
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_make_cleanup
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_target_read_memory
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_dump_bfd_file
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_dump_binary_file
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_cleanups
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_null_cleanup,4,2               ## @null_cleanup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing start address."

L_.str.1:                               ## @.str.1
	.asciz	"Missing stop address."

L_.str.2:                               ## @.str.2
	.asciz	"Invalid memory address range (start >= end)."

	.comm	_xfree,4,2                      ## @xfree
L_.str.3:                               ## @.str.3
	.asciz	"binary"

	.no_dead_strip	_dump_memory_to_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_memory_to_file
_dump_memory_to_file:                   ; @dump_memory_to_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _null_cleanup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _null_cleanup@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_make_cleanup
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_scan_filename_with_cleanup
	mov	x22, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_3:
	add	x0, sp, #8
	mov	x1, #0
	bl	_scan_expression_with_cleanup
	mov	x23, x0
	ldr	x25, [sp, #8]
	cbz	x25, LBB0_5
; %bb.4:
	ldrb	w8, [x25]
	cbnz	w8, LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	ldr	x25, [sp, #8]
LBB0_6:
	mov	x0, x23
	bl	_parse_and_eval_address
	mov	x24, x0
	mov	x0, x25
	bl	_parse_and_eval_address
	subs	x23, x0, x24
	b.gt	LBB0_8
; %bb.7:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_8:
	mov	x0, x23
	bl	_xmalloc
	mov	x25, x0
Lloh9:
	adrp	x8, _xfree@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_make_cleanup
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	bl	_target_read_memory
	cbz	x21, LBB0_11
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	mov	x4, x25
	mov	x5, x23
	bl	_dump_bfd_file
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	x3, x23
	bl	_dump_binary_file
LBB0_12:
	mov	x0, x19
	bl	_do_cleanups
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_null_cleanup,4,2               ; @null_cleanup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing start address."

l_.str.1:                               ; @.str.1
	.asciz	"Missing stop address."

l_.str.2:                               ; @.str.2
	.asciz	"Invalid memory address range (start >= end)."

	.comm	_xfree,4,2                      ; @xfree
l_.str.3:                               ; @.str.3
	.asciz	"binary"

	.no_dead_strip	_dump_memory_to_file
.subsections_via_symbols
