	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_ptrace_addr
_register_ptrace_addr:                  ## @register_ptrace_addr
	.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
	movl	%edi, %ebx
	cmpl	$31, %edi
	jg	LBB0_2
## %bb.1:
	movq	_GPR_BASE@GOTPCREL(%rip), %rax
LBB0_16:
	addl	(%rax), %ebx
	movl	%ebx, %eax
	jmp	LBB0_17
LBB0_2:
	movq	_current_gdbarch@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_4:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 4(%rax)
	jne	LBB0_6
## %bb.5:
	movq	_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_6:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 8(%rax)
	jne	LBB0_8
## %bb.7:
	movq	_MMHI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_8:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 12(%rax)
	jne	LBB0_10
## %bb.9:
	movq	_MMLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_10:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 16(%rax)
	jne	LBB0_12
## %bb.11:
	movq	_FPC_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_12:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 20(%rax)
	jne	LBB0_14
## %bb.13:
	movq	_FPC_EIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_14:
	movq	_FP0_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	jle	LBB0_15
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movq	_FPR_BASE@GOTPCREL(%rip), %rax
	subl	%ecx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GPR_BASE,4,2                   ## @GPR_BASE
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_PC,4,2                         ## @PC
	.comm	_CAUSE,4,2                      ## @CAUSE
	.comm	_MMHI,4,2                       ## @MMHI
	.comm	_MMLO,4,2                       ## @MMLO
	.comm	_FPC_CSR,4,2                    ## @FPC_CSR
	.comm	_FPC_EIR,4,2                    ## @FPC_EIR
	.comm	_FP0_REGNUM,4,2                 ## @FP0_REGNUM
	.comm	_FPR_BASE,4,2                   ## @FPR_BASE
	.no_dead_strip	_register_ptrace_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_ptrace_addr
_register_ptrace_addr:                  ; @register_ptrace_addr
	.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
	mov	x19, x0
	cmp	w0, #31
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GPR_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPR_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w19
	b	LBB0_17
LBB0_2:
Lloh3:
	adrp	x20, _current_gdbarch@GOTPAGE
Lloh4:
	ldr	x20, [x20, _current_gdbarch@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _PC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_4:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #4]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _CAUSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAUSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_6:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _MMHI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMHI@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_8:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #12]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:
Lloh14:
	adrp	x8, _MMLO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMLO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_10:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #16]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _FPC_CSR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FPC_CSR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_12:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #20]
	cmp	w8, w19
	b.ne	LBB0_14
; %bb.13:
Lloh20:
	adrp	x8, _FPC_EIR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FPC_EIR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_14:
Lloh23:
	adrp	x8, _FP0_REGNUM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FP0_REGNUM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_16
; %bb.15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
Lloh26:
	adrp	x9, _FPR_BASE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FPR_BASE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	sub	w8, w19, w8
	add	w0, w8, w9
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GPR_BASE,4,2                   ; @GPR_BASE
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_PC,4,2                         ; @PC
	.comm	_CAUSE,4,2                      ; @CAUSE
	.comm	_MMHI,4,2                       ; @MMHI
	.comm	_MMLO,4,2                       ; @MMLO
	.comm	_FPC_CSR,4,2                    ; @FPC_CSR
	.comm	_FPC_EIR,4,2                    ; @FPC_EIR
	.comm	_FP0_REGNUM,4,2                 ; @FP0_REGNUM
	.comm	_FPR_BASE,4,2                   ; @FPR_BASE
	.no_dead_strip	_register_ptrace_addr
.subsections_via_symbols
