	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_sigaltstack              ## -- Begin function linux_sigaltstack
	.p2align	4, 0x90
_linux_sigaltstack:                     ## @linux_sigaltstack
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	-32(%rbp), %rsi
	movl	$12, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	-24(%rbp), %edi
	callq	_PTRIN
	movl	%eax, -56(%rbp)
	movl	-32(%rbp), %edi
	movl	-28(%rbp), %eax
	movl	%eax, -60(%rbp)
	callq	_linux_to_bsd_sigaltstack
	movl	%eax, -64(%rbp)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	leaq	-64(%rbp), %rsi
	cmoveq	%rax, %rsi
	jmp	LBB0_4
LBB0_1:
	xorl	%esi, %esi
LBB0_4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	leaq	-48(%rbp), %rdx
	cmoveq	%rax, %rdx
	movq	%r14, %rdi
	callq	_kern_sigaltstack
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.7:
	movl	-40(%rbp), %edi
	callq	_PTROUT
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %eax
	movl	%eax, -28(%rbp)
	callq	_bsd_to_linux_sigaltstack
	movl	%eax, -32(%rbp)
	movq	(%rbx), %rsi
	leaq	-32(%rbp), %rdi
	movl	$12, %edx
	callq	_copyout
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_sigaltstack              ; -- Begin function linux_sigaltstack
	.p2align	2
_linux_sigaltstack:                     ; @linux_sigaltstack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, sp
	mov	w2, #12
	bl	_copyin
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_PTRIN
	ldp	w8, w9, [sp]
	stp	w9, w0, [sp, #36]
	mov	x0, x8
	bl	_linux_to_bsd_sigaltstack
	str	w0, [sp, #32]
	ldr	x8, [x19, #8]
	add	x9, sp, #32
	cmp	x8, #0
	csel	x1, xzr, x9, eq
	b	LBB0_4
LBB0_3:
	mov	x1, #0
LBB0_4:
	ldr	x8, [x19]
	add	x9, sp, #16
	cmp	x8, #0
	csel	x2, xzr, x9, eq
	mov	x0, x20
	bl	_kern_sigaltstack
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [sp, #24]
	bl	_PTROUT
	ldp	w8, w9, [sp, #16]
	stp	w9, w0, [sp, #4]
	mov	x0, x8
	bl	_bsd_to_linux_sigaltstack
	str	w0, [sp]
	ldr	x1, [x19]
	mov	x0, sp
	mov	w2, #12
	bl	_copyout
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
