	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function segv_handler
_segv_handler:                          ## @segv_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movups	L___const.segv_handler.msg+9(%rip), %xmm0
	movups	%xmm0, -39(%rbp)
	movaps	L___const.segv_handler.msg(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	$24, %edx
	callq	_write
	movq	_testname@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_write
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_write
	movl	%ebx, %edi
	callq	_close
LBB0_2:
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.segv_handler.msg
L___const.segv_handler.msg:
	.asciz	"SIGSEGV i current test: "

L_.str:                                 ## @.str
	.asciz	"/dev/stdout"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_testname,8,3                   ## @testname
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_segv_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function segv_handler
_segv_handler:                          ; @segv_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, l___const.segv_handler.msg@PAGE
Lloh1:
	add	x8, x8, l___const.segv_handler.msg@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldur	q0, [x8, #9]
	stur	q0, [sp, #9]
Lloh2:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #384
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x1, sp
	mov	w2, #24
	bl	_write
Lloh7:
	adrp	x8, _testname@GOTPAGE
Lloh8:
	ldr	x8, [x8, _testname@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_write
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_write
	mov	x0, x19
	bl	_close
LBB0_2:
	mov	w0, #1
	bl	__exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.segv_handler.msg:             ; @__const.segv_handler.msg
	.asciz	"SIGSEGV i current test: "

l_.str:                                 ; @.str
	.asciz	"/dev/stdout"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_testname,8,3                   ; @testname
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_segv_handler
.subsections_via_symbols
