	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ia64_sigtramp_frame_prev_register
_ia64_sigtramp_frame_prev_register:     ## @ia64_sigtramp_frame_prev_register
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ia64_sigtramp_frame_cache
	movq	%rax, %r13
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_gdb_assert
	movq	_target_has_registers@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, (%rbx)
	movq	_not_lval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	16(%rbp), %rax
	movl	$-1, (%rax)
	movq	24(%rbp), %rax
	testq	%rax, %rax
	cmovneq	%rax, %r15
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_register_size
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_IA64_IP_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movq	%rbx, %rsi
	jne	LBB0_7
## %bb.3:
	movq	(%r13), %rcx
	movq	_IA64_VRAP_REGNUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	_lval_memory@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	movq	%rbx, (%rsi)
	movq	_current_gdbarch@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_register_size
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_ia64_read_reg
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_extract_unsigned_integer
	movq	%rax, %rdx
	andq	$-16, %rdx
	jmp	LBB0_6
LBB0_7:
	movq	_IA64_GR32_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_V32_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r12d, %eax
	jg	LBB0_9
## %bb.8:
	movq	_IA64_GR127_REGNUM@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	jge	LBB0_11
LBB0_9:
	cmpl	%r12d, %ecx
	jg	LBB0_12
## %bb.10:
	movq	_V127_REGNUM@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	jl	LBB0_12
LBB0_11:
	addl	%r12d, %eax
	subl	%ecx, %eax
	cmpl	%r12d, %ecx
	cmovlel	%eax, %r12d
LBB0_12:
	movq	(%r13), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	movq	_lval_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, (%rsi)
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_register_size
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ia64_read_reg
	jmp	LBB0_14
LBB0_4:
	xorl	%edx, %edx
LBB0_6:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_store_unsigned_integer
LBB0_14:
	movq	_gdbarch_debug@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.15:
	movq	%r15, %rdi
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IA64_NAT127_REGNUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jbe	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_18
LBB0_17:
	movq	_ia64_register_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rbx
LBB0_18:
	movl	$8, %esi
	callq	_extract_unsigned_integer
	movq	%rax, %rdi
	callq	_paddr_nz
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_fprintf_unfiltered
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
	.comm	_target_has_registers,4,2       ## @target_has_registers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No registers."

	.comm	_not_lval,4,2                   ## @not_lval
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_IA64_IP_REGNUM,4,2             ## @IA64_IP_REGNUM
	.comm	_IA64_VRAP_REGNUM,8,3           ## @IA64_VRAP_REGNUM
	.comm	_lval_memory,4,2                ## @lval_memory
	.comm	_IA64_GR32_REGNUM,4,2           ## @IA64_GR32_REGNUM
	.comm	_IA64_GR127_REGNUM,4,2          ## @IA64_GR127_REGNUM
	.comm	_V32_REGNUM,4,2                 ## @V32_REGNUM
	.comm	_V127_REGNUM,4,2                ## @V127_REGNUM
	.comm	_gdbarch_debug,4,2              ## @gdbarch_debug
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
L_.str.1:                               ## @.str.1
	.asciz	"sigtramp prev register <%s> is 0x%s\n"

	.comm	_IA64_NAT127_REGNUM,4,2         ## @IA64_NAT127_REGNUM
	.comm	_ia64_register_names,8,3        ## @ia64_register_names
L_.str.2:                               ## @.str.2
	.asciz	"r??"

	.no_dead_strip	_ia64_sigtramp_frame_prev_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ia64_sigtramp_frame_prev_register
_ia64_sigtramp_frame_prev_register:     ; @ia64_sigtramp_frame_prev_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x7
	mov	x25, x6
	mov	x21, x5
	mov	x22, x4
	mov	x26, x3
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_REGISTER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_REGISTER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x27, x9, x12
	mov	sp, x27
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	bl	_ia64_sigtramp_frame_cache
	mov	x24, x0
	mvn	w8, w19
	lsr	w0, w8, #31
	bl	_gdb_assert
Lloh10:
	adrp	x8, _target_has_registers@GOTPAGE
Lloh11:
	ldr	x8, [x8, _target_has_registers@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	str	wzr, [x26]
	str	xzr, [x21]
Lloh15:
	adrp	x8, _not_lval@GOTPAGE
Lloh16:
	ldr	x8, [x8, _not_lval@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	w8, #-1
	str	w8, [x25]
	cmp	x20, #0
	csel	x20, x27, x20, eq
Lloh18:
	adrp	x25, _current_gdbarch@GOTPAGE
Lloh19:
	ldr	x25, [x25, _current_gdbarch@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_register_size
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh20:
	adrp	x8, _IA64_IP_REGNUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IA64_IP_REGNUM@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w19
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x24]
Lloh22:
	adrp	x10, _IA64_VRAP_REGNUM@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IA64_VRAP_REGNUM@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	ldr	x24, [x9, x10, lsl #3]
	cbz	x24, LBB0_12
; %bb.4:
Lloh25:
	adrp	x9, _lval_memory@GOTPAGE
Lloh26:
	ldr	x9, [x9, _lval_memory@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	str	w9, [x22]
	str	x24, [x21]
	ldr	w0, [x25]
	ldr	w1, [x8]
	bl	_register_size
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_ia64_read_reg
	mov	x0, x23
	mov	w1, #8
	bl	_extract_unsigned_integer
	and	x2, x0, #0xfffffffffffffff0
	b	LBB0_13
LBB0_5:
Lloh28:
	adrp	x8, _IA64_GR32_REGNUM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IA64_GR32_REGNUM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _V32_REGNUM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _V32_REGNUM@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w19
	b.gt	LBB0_7
; %bb.6:
Lloh34:
	adrp	x10, _IA64_GR127_REGNUM@GOTPAGE
Lloh35:
	ldr	x10, [x10, _IA64_GR127_REGNUM@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	cmp	w10, w19
	b.ge	LBB0_9
LBB0_7:
	cmp	w9, w19
	b.gt	LBB0_10
; %bb.8:
Lloh37:
	adrp	x10, _V127_REGNUM@GOTPAGE
Lloh38:
	ldr	x10, [x10, _V127_REGNUM@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	cmp	w10, w19
	b.lt	LBB0_10
LBB0_9:
	add	w8, w8, w19
	sub	w8, w8, w9
	cmp	w9, w19
	csel	w19, w19, w8, gt
LBB0_10:
	ldr	x8, [x24]
	ldr	x23, [x8, w19, sxtw #3]
	cbz	x23, LBB0_14
; %bb.11:
Lloh40:
	adrp	x8, _lval_memory@GOTPAGE
Lloh41:
	ldr	x8, [x8, _lval_memory@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x22]
	str	x23, [x21]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_register_size
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_ia64_read_reg
	b	LBB0_14
LBB0_12:
	mov	x2, #0
LBB0_13:
	mov	x0, x20
	mov	w1, #8
	bl	_store_unsigned_integer
LBB0_14:
Lloh43:
	adrp	x8, _gdbarch_debug@GOTPAGE
Lloh44:
	ldr	x8, [x8, _gdbarch_debug@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
Lloh46:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh47:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh48:
	ldr	w21, [x8]
Lloh49:
	adrp	x8, _IA64_NAT127_REGNUM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IA64_NAT127_REGNUM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ls	LBB0_17
; %bb.16:
Lloh52:
	adrp	x19, l_.str.2@PAGE
Lloh53:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh54:
	adrp	x8, _ia64_register_names@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ia64_register_names@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldr	x19, [x8, w19, sxtw #3]
LBB0_18:
	mov	x0, x20
	mov	w1, #8
	bl	_extract_unsigned_integer
	bl	_paddr_nz
	mov	x3, x0
Lloh57:
	adrp	x1, l_.str.1@PAGE
Lloh58:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_fprintf_unfiltered
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
	.comm	_target_has_registers,4,2       ; @target_has_registers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No registers."

	.comm	_not_lval,4,2                   ; @not_lval
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_IA64_IP_REGNUM,4,2             ; @IA64_IP_REGNUM
	.comm	_IA64_VRAP_REGNUM,8,3           ; @IA64_VRAP_REGNUM
	.comm	_lval_memory,4,2                ; @lval_memory
	.comm	_IA64_GR32_REGNUM,4,2           ; @IA64_GR32_REGNUM
	.comm	_IA64_GR127_REGNUM,4,2          ; @IA64_GR127_REGNUM
	.comm	_V32_REGNUM,4,2                 ; @V32_REGNUM
	.comm	_V127_REGNUM,4,2                ; @V127_REGNUM
	.comm	_gdbarch_debug,4,2              ; @gdbarch_debug
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
l_.str.1:                               ; @.str.1
	.asciz	"sigtramp prev register <%s> is 0x%s\n"

	.comm	_IA64_NAT127_REGNUM,4,2         ; @IA64_NAT127_REGNUM
	.comm	_ia64_register_names,8,3        ; @ia64_register_names
l_.str.2:                               ; @.str.2
	.asciz	"r??"

	.no_dead_strip	_ia64_sigtramp_frame_prev_register
.subsections_via_symbols
