	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altstack_to_user
_altstack_to_user:                      ## @altstack_to_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	(%rdi), %rax
	movq	%rax, (%rbx)
	movl	8(%rdi), %ecx
	movl	%ecx, 12(%rbx)
	movl	$0, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_SS_DISABLE_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_is_on_altstack
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SS_ONSTACK_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_DISABLE_,4,2                ## @SS_DISABLE_
	.comm	_current,8,3                    ## @current
	.comm	_SS_ONSTACK_,4,2                ## @SS_ONSTACK_
	.no_dead_strip	_altstack_to_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altstack_to_user
_altstack_to_user:                      ; @altstack_to_user
	.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
	mov	x1, x0
	ldr	x8, [x0]
	str	x8, [x19]
	ldr	w9, [x0, #8]
	stp	wzr, w9, [x19, #8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SS_DISABLE_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SS_DISABLE_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_2:
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_is_on_altstack
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _SS_ONSTACK_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SS_ONSTACK_@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_DISABLE_,4,2                ; @SS_DISABLE_
	.comm	_current,8,3                    ; @current
	.comm	_SS_ONSTACK_,4,2                ; @SS_ONSTACK_
	.no_dead_strip	_altstack_to_user
.subsections_via_symbols
