	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_begin                     ## -- Begin function dump_begin
	.p2align	4, 0x90
_dump_begin:                            ## @dump_begin
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TDI_none@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_dump_enabled_p
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%ebx, %edi
	callq	_get_dump_file_name
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_get_dump_file_info
	movq	%rax, %r12
	cmpl	$0, (%rax)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovsq	%rax, %rsi
	movq	%r15, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	$1, (%r12)
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_error
LBB0_7:
	movq	%r15, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movl	4(%r12), %eax
	movl	%eax, (%r14)
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDI_none,4,2                   ## @TDI_none
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"a"

L_.str.2:                               ## @.str.2
	.asciz	"could not open dump file %qs: %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_begin                     ; -- Begin function dump_begin
	.p2align	2
_dump_begin:                            ; @dump_begin
	.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
Lloh0:
	adrp	x8, _TDI_none@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDI_none@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_dump_enabled_p
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_get_dump_file_name
	mov	x20, x0
	mov	x0, x21
	bl	_get_dump_file_info
	mov	x21, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str@PAGE
Lloh6:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, lt
	mov	x0, x20
	bl	_fopen
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_6
LBB0_4:
	mov	x22, #0
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_error
LBB0_6:
	mov	x0, x20
	bl	_free
	cbz	x19, LBB0_8
; %bb.7:
	ldr	w8, [x21, #4]
	str	w8, [x19]
LBB0_8:
	mov	x0, x22
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TDI_none,4,2                   ; @TDI_none
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"a"

l_.str.2:                               ; @.str.2
	.asciz	"could not open dump file %qs: %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
