	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipsnbsd_sigtramp_offset
_mipsnbsd_sigtramp_offset:              ## @mipsnbsd_sigtramp_offset
	.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
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TARGET_BYTE_ORDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BFD_ENDIAN_BIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_sigtramp_retcode_mipseb@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_sigtramp_retcode_mipsel@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r13
	movq	_RETCODE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-52(%rbp), %rsi
	movl	%r12d, %edi
	movl	$4, %edx
	callq	_read_memory_nobpt
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_RETCODE_NWORDS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movl	%r12d, %ebx
	xorl	%r15d, %r15d
	leaq	-52(%rbp), %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %r15
	jl	LBB0_7
	jmp	LBB0_10
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:
	movl	(%r13), %eax
LBB0_10:
	movl	%ebx, %r12d
	movl	$-1, %r14d
LBB0_11:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	cmpl	%eax, %r15d
	je	LBB0_14
## %bb.12:
	shll	$2, %r15d
	subl	%r15d, %r12d
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_read_memory_nobpt
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	_RETCODE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcmp
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
	orl	%r15d, %r14d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_BYTE_ORDER,8,3          ## @TARGET_BYTE_ORDER
	.comm	_BFD_ENDIAN_BIG,8,3             ## @BFD_ENDIAN_BIG
	.comm	_sigtramp_retcode_mipseb,8,3    ## @sigtramp_retcode_mipseb
	.comm	_sigtramp_retcode_mipsel,8,3    ## @sigtramp_retcode_mipsel
	.comm	_RETCODE_SIZE,4,2               ## @RETCODE_SIZE
	.comm	_RETCODE_NWORDS,4,2             ## @RETCODE_NWORDS
	.no_dead_strip	_mipsnbsd_sigtramp_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipsnbsd_sigtramp_offset
_mipsnbsd_sigtramp_offset:              ; @mipsnbsd_sigtramp_offset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _TARGET_BYTE_ORDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_BYTE_ORDER@GOTPAGEOFF]
Lloh5:
	adrp	x9, _BFD_ENDIAN_BIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BFD_ENDIAN_BIG@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _sigtramp_retcode_mipseb@GOTPAGE
Lloh10:
	ldr	x10, [x10, _sigtramp_retcode_mipseb@GOTPAGEOFF]
Lloh11:
	adrp	x11, _sigtramp_retcode_mipsel@GOTPAGE
Lloh12:
	ldr	x11, [x11, _sigtramp_retcode_mipsel@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x19, [x8]
Lloh13:
	adrp	x24, _RETCODE_SIZE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _RETCODE_SIZE@GOTPAGEOFF]
	ldr	w21, [x24]
	mov	x9, x21
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	sub	x1, x29, #76
	mov	w2, #4
	bl	_read_memory_nobpt
	cbnz	x0, LBB0_9
; %bb.1:
Lloh17:
	adrp	x26, _RETCODE_NWORDS@GOTPAGE
Lloh18:
	ldr	x26, [x26, _RETCODE_NWORDS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x25, #0
	mov	x23, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #76
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x26]
	add	x23, x23, #4
	cmp	x25, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w25, #0
LBB0_6:
	cmp	w25, w8
	b.eq	LBB0_9
	b	LBB0_8
LBB0_7:
	ldr	w8, [x26]
	cmp	w25, w8
	b.eq	LBB0_9
LBB0_8:
	lsl	w23, w25, #2
	sub	w0, w20, w23
	mov	x1, x22
	mov	x2, x21
	bl	_read_memory_nobpt
	cbz	x0, LBB0_12
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x19
	bl	_memcmp
	cmp	x0, #0
	csinv	w0, w23, wzr, eq
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_BYTE_ORDER,8,3          ; @TARGET_BYTE_ORDER
	.comm	_BFD_ENDIAN_BIG,8,3             ; @BFD_ENDIAN_BIG
	.comm	_sigtramp_retcode_mipseb,8,3    ; @sigtramp_retcode_mipseb
	.comm	_sigtramp_retcode_mipsel,8,3    ; @sigtramp_retcode_mipsel
	.comm	_RETCODE_SIZE,4,2               ; @RETCODE_SIZE
	.comm	_RETCODE_NWORDS,4,2             ; @RETCODE_NWORDS
	.no_dead_strip	_mipsnbsd_sigtramp_offset
.subsections_via_symbols
