	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cur_dump                   ## -- Begin function set_cur_dump
	.p2align	4, 0x90
_set_cur_dump:                          ## @set_cur_dump
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	setns	%al
	movq	_engine_n@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_dump_fd@GOTPCREL(%rip), %r14
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rdi
	cmpl	$-1, (%rax,%rdi,4)
	je	LBB0_3
## %bb.2:
	callq	_dl_close_file
LBB0_3:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
LBB0_5:
	movq	_dump_name@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_dump_type@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	$100, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movq	(%r14), %rdi
	movl	(%r15), %esi
	movl	$-1, %edx
	callq	_dl_open_file
	shrq	$63, %rax
	xorl	$1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_engine_n,4,2                   ## @engine_n
	.comm	_fd,8,3                         ## @fd
	.comm	_dump_fd,8,3                    ## @dump_fd
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nSwitching to dump %d\n"

	.comm	_dump_name,4,2                  ## @dump_name
L_.str.1:                               ## @.str.1
	.asciz	"dump%03d.%d"

	.comm	_dump_type,4,2                  ## @dump_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cur_dump                   ; -- Begin function set_cur_dump
	.p2align	2
_set_cur_dump:                          ; @set_cur_dump
	.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
	mov	x19, x0
	cmp	w0, #0
Lloh0:
	adrp	x8, _engine_n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _engine_n@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, gt
	bl	_assert
Lloh3:
	adrp	x20, _dump_fd@GOTPAGE
Lloh4:
	ldr	x20, [x20, _dump_fd@GOTPAGEOFF]
	cbz	w19, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _fd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x20]
	ldr	w8, [x8, x0, lsl #2]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	bl	_dl_close_file
LBB0_3:
Lloh8:
	adrp	x8, _verbosity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_5:
Lloh16:
	adrp	x21, _dump_name@GOTPAGE
Lloh17:
	ldr	x21, [x21, _dump_name@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _dump_type@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dump_type@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #100
	mov	x3, x19
	bl	_snprintf
	ldr	x0, [x20]
	ldr	w1, [x21]
	mov	w2, #-1
	bl	_dl_open_file
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_engine_n,4,2                   ; @engine_n
	.comm	_fd,8,3                         ; @fd
	.comm	_dump_fd,8,3                    ; @dump_fd
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nSwitching to dump %d\n"

	.comm	_dump_name,4,2                  ; @dump_name
l_.str.1:                               ; @.str.1
	.asciz	"dump%03d.%d"

	.comm	_dump_type,4,2                  ; @dump_type
.subsections_via_symbols
