	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function derive_stack_segment
_derive_stack_segment:                  ## @derive_stack_segment
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_gdb_assert
	movq	%r15, %rdi
	callq	_gdb_assert
	movq	_target_has_stack@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_target_has_registers@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_get_current_frame
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_get_frame_base
	movq	%rax, (%r15)
	xorl	%eax, %eax
	callq	_read_sp
	movq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_INNER_THAN
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_read_sp
	movq	%rax, (%r15)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_get_prev_frame
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_get_frame_base
	movq	%rax, (%r14)
	movq	(%r15), %rcx
	movl	$1, %r12d
	cmpq	%rcx, %rax
	jle	LBB0_8
## %bb.7:
	movq	%rax, (%r15)
	movq	%rcx, (%r14)
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_target_has_stack,4,2           ## @target_has_stack
	.comm	_target_has_registers,4,2       ## @target_has_registers
	.no_dead_strip	_derive_stack_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function derive_stack_segment
_derive_stack_segment:                  ; @derive_stack_segment
	.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	x20, x1
	mov	x19, x0
	bl	_gdb_assert
	mov	x0, x20
	bl	_gdb_assert
Lloh0:
	adrp	x8, _target_has_stack@GOTPAGE
Lloh1:
	ldr	x8, [x8, _target_has_stack@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _target_has_registers@GOTPAGE
Lloh4:
	ldr	x9, [x9, _target_has_registers@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	bl	_get_current_frame
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	bl	_get_frame_base
	str	x0, [x20]
	bl	_read_sp
	ldr	x1, [x20]
	bl	_INNER_THAN
	cbz	x0, LBB0_5
; %bb.4:
	bl	_read_sp
	str	x0, [x20]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x21
	mov	x0, x21
	bl	_get_prev_frame
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.6:
	mov	x0, x22
	bl	_get_frame_base
	str	x0, [x19]
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_8
; %bb.7:
	str	x0, [x20]
	str	x8, [x19]
LBB0_8:
	mov	w0, #1
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_target_has_stack,4,2           ; @target_has_stack
	.comm	_target_has_registers,4,2       ; @target_has_registers
	.no_dead_strip	_derive_stack_segment
.subsections_via_symbols
