	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stack_swap                     ## -- Begin function stack_swap
	.p2align	4, 0x90
_stack_swap:                            ## @stack_swap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %edx
	leal	-1(%rax), %esi
	movl	(%rcx,%rsi,4), %esi
	movl	%esi, (%rcx,%rax,4)
	movslq	(%rdi), %rax
	movl	%edx, -4(%rcx,%rax,4)
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stack empty"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stack_swap                     ; -- Begin function stack_swap
	.p2align	2
_stack_swap:                            ; @stack_swap
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	sub	w8, w8, #1
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [x9, x10]
	ldrsw	x8, [x0]
	add	x8, x9, x8, lsl #2
	stur	w11, [x8, #-4]
	ret
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	_warnx
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stack empty"

.subsections_via_symbols
