	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kgdb_trgt_trapframe_prev_register
_kgdb_trgt_trapframe_prev_register:     ## @kgdb_trgt_trapframe_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, %r12
	movq	%r8, %r15
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_register_size
	movq	24(%rbp), %rcx
	testq	%rcx, %rcx
	cmovneq	%rcx, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	_memset
	movl	$0, (%r14)
	movq	$0, (%r12)
	movq	_not_lval@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	16(%rbp), %rax
	movl	$-1, (%rax)
	testl	%r13d, %r13d
	js	LBB0_4
## %bb.1:
	movq	_ARM_PS_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jl	LBB0_4
## %bb.2:
	movq	_kgdb_trgt_frame_offset@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%r13d, %r13d
	cmpl	$-1, (%rax,%r13,4)
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_kgdb_trgt_frame_cache
	movq	(%r14), %rcx
	movslq	(%rcx,%r13,4), %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%r12)
	movq	_lval_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_target_read_memory
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_not_lval,4,2                   ## @not_lval
	.comm	_ARM_PS_REGNUM,4,2              ## @ARM_PS_REGNUM
	.comm	_kgdb_trgt_frame_offset,8,3     ## @kgdb_trgt_frame_offset
	.comm	_lval_memory,4,2                ## @lval_memory
	.no_dead_strip	_kgdb_trgt_trapframe_prev_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kgdb_trgt_trapframe_prev_register
_kgdb_trgt_trapframe_prev_register:     ; @kgdb_trgt_trapframe_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	x25, x7
	mov	x26, x6
	mov	x19, x5
	mov	x20, x4
	mov	x27, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
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	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
Lloh8:
	adrp	x8, _current_gdbarch@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current_gdbarch@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x2
	bl	_register_size
	mov	x24, x0
	cmp	x25, #0
	csel	x25, x28, x25, eq
	mov	x0, x25
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	str	wzr, [x27]
	str	xzr, [x19]
Lloh11:
	adrp	x8, _not_lval@GOTPAGE
Lloh12:
	ldr	x8, [x8, _not_lval@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w8, #-1
	str	w8, [x26]
	tbnz	w23, #31, LBB0_4
; %bb.1:
Lloh14:
	adrp	x8, _ARM_PS_REGNUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARM_PS_REGNUM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w23
	b.lt	LBB0_4
; %bb.2:
Lloh17:
	adrp	x26, _kgdb_trgt_frame_offset@GOTPAGE
Lloh18:
	ldr	x26, [x26, _kgdb_trgt_frame_offset@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w8, [x8, w23, uxtw #2]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	mov	w23, w23
	mov	x0, x22
	mov	x1, x21
	bl	_kgdb_trgt_frame_cache
	ldr	x8, [x0]
	ldr	x9, [x26]
	ldrsw	x9, [x9, x23, lsl #2]
	add	x8, x8, x9
	str	x8, [x19]
Lloh19:
	adrp	x8, _lval_memory@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lval_memory@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x0, [x19]
	mov	x1, x25
	mov	x2, x24
	bl	_target_read_memory
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_not_lval,4,2                   ; @not_lval
	.comm	_ARM_PS_REGNUM,4,2              ; @ARM_PS_REGNUM
	.comm	_kgdb_trgt_frame_offset,8,3     ; @kgdb_trgt_frame_offset
	.comm	_lval_memory,4,2                ; @lval_memory
	.no_dead_strip	_kgdb_trgt_trapframe_prev_register
.subsections_via_symbols
