	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mark_eh_edge
_mark_eh_edge:                          ## @mark_eh_edge
	.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
	movq	%rsi, %rbx
	callq	_get_eh_region_tree_label
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_bb_for_stmt
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_label_to_block
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_find_edge
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_EDGE_EH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_error
	movq	_mark_eh_edge_found_error@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	$1, 8(%rax)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EH edge %i->%i is missing"

	.comm	_mark_eh_edge_found_error,4,2   ## @mark_eh_edge_found_error
	.comm	_EDGE_EH,4,2                    ## @EDGE_EH
L_.str.1:                               ## @.str.1
	.asciz	"EH edge %i->%i miss EH flag"

L_.str.2:                               ## @.str.2
	.asciz	"EH edge %i->%i has duplicated regions"

	.no_dead_strip	_mark_eh_edge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mark_eh_edge
_mark_eh_edge:                          ; @mark_eh_edge
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_get_eh_region_tree_label
	mov	x20, x0
	mov	x0, x19
	bl	_bb_for_stmt
	mov	x19, x0
	mov	x0, x20
	bl	_label_to_block
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_find_edge
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EDGE_EH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EDGE_EH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x1, [x19]
	ldr	x2, [x20]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x1, [x19]
	ldr	x2, [x20]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	x1, [x19]
	ldr	x2, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_error
Lloh9:
	adrp	x8, _mark_eh_edge_found_error@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mark_eh_edge_found_error@GOTPAGEOFF]
	mov	w9, #1
Lloh11:
	str	w9, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #1
	str	x8, [x0, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EH edge %i->%i is missing"

	.comm	_mark_eh_edge_found_error,4,2   ; @mark_eh_edge_found_error
	.comm	_EDGE_EH,4,2                    ; @EDGE_EH
l_.str.1:                               ; @.str.1
	.asciz	"EH edge %i->%i miss EH flag"

l_.str.2:                               ; @.str.2
	.asciz	"EH edge %i->%i has duplicated regions"

	.no_dead_strip	_mark_eh_edge
.subsections_via_symbols
