	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_STACK
_read_STACK:                            ## @read_STACK
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_rSTACK@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	decq	%rax
	movq	%rax, (%r14)
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_2
## %bb.1:
	movq	$5, (%r14)
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movq	_EL_SVP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	movl	%ebx, %edi
	movl	%eax, %ecx
	callq	_elprintf
	movq	(%r14), %rax
LBB0_2:
	movq	_ssp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rSTACK,8,3                     ## @rSTACK
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssp FIXME: stack underflow! (%i) @ %04x"

	.comm	_ssp,8,3                        ## @ssp
	.no_dead_strip	_read_STACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_STACK
_read_STACK:                            ; @read_STACK
	.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
Lloh0:
	adrp	x20, _rSTACK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rSTACK@GOTPAGEOFF]
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	tbz	w8, #15, LBB0_2
; %bb.1:
	mov	w8, #5
Lloh2:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
	str	x8, [x20]
Lloh4:
	ldr	w8, [x9]
Lloh5:
	adrp	x9, _EL_SVP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EL_SVP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w19, w9, w8
	bl	_GET_PPC_OFFS
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #5
	bl	_elprintf
	ldr	x8, [x20]
LBB0_2:
Lloh10:
	adrp	x9, _ssp@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ssp@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_rSTACK,8,3                     ; @rSTACK
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssp FIXME: stack underflow! (%i) @ %04x"

	.comm	_ssp,8,3                        ; @ssp
	.no_dead_strip	_read_STACK
.subsections_via_symbols
