	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__mips_rtld_bind                ## -- Begin function _mips_rtld_bind
	.p2align	4, 0x90
__mips_rtld_bind:                       ## @_mips_rtld_bind
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	40(%rdi), %r13
	movq	_rtld_bind_lock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_rlock_acquire
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	callq	_sigsetjmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_lock_upgrade
LBB0_2:
	movq	(%r15), %r12
	addq	%r14, %r12
	subq	8(%r15), %r12
	movq	_SYMLOOK_IN_PLT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movl	%eax, %r8d
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r9
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_find_symdef
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_rtld_die
LBB0_4:
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	movq	8(%rbx), %rbx
	addq	32(%rax), %rbx
	movl	24(%r15), %esi
	movl	%r14d, %edx
	addq	16(%rax), %rcx
	movq	(%r13,%r12,8), %r8
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %r9
	callq	_dbg
	movq	_ld_bind_not@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, (%r13,%r12,8)
LBB0_6:
	movq	_rtld_bind_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_lock_release
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtld_bind_lock,4,2             ## @rtld_bind_lock
	.comm	_SYMLOOK_IN_PLT,4,2             ## @SYMLOOK_IN_PLT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bind now/fixup at %s sym # %jd in %s --> was=%p new=%p"

	.comm	_ld_bind_not,4,2                ## @ld_bind_not
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__mips_rtld_bind                ; -- Begin function _mips_rtld_bind
	.p2align	2
__mips_rtld_bind:                       ; @_mips_rtld_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #40]
Lloh0:
	adrp	x22, _rtld_bind_lock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rtld_bind_lock@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, sp
	bl	_rlock_acquire
	ldr	w0, [sp]
	mov	w1, #0
	bl	_sigsetjmp
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	mov	x1, sp
	bl	_lock_upgrade
LBB0_2:
	ldp	x8, x9, [x20]
	add	x8, x8, x19
	sub	x24, x8, x9
Lloh2:
	adrp	x8, _SYMLOOK_IN_PLT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYMLOOK_IN_PLT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x4, #0
	add	x2, sp, #8
	mov	x5, sp
	mov	x0, x19
	mov	x1, x20
	bl	_find_symdef
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
	bl	_rtld_die
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #32]
	ldp	x11, x10, [x21]
	add	x5, x10, x9
	mov	x21, x5
	ldr	w1, [x20, #24]
	mov	x2, x19
	ldr	x8, [x8, #16]
	add	x3, x11, x8
	ldr	x4, [x23, x24, lsl #3]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh7:
	adrp	x8, _ld_bind_not@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ld_bind_not@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.5:
	str	x21, [x23, x24, lsl #3]
LBB0_6:
	ldr	w0, [x22]
	mov	x1, sp
	bl	_lock_release
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_rtld_bind_lock,4,2             ; @rtld_bind_lock
	.comm	_SYMLOOK_IN_PLT,4,2             ; @SYMLOOK_IN_PLT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bind now/fixup at %s sym # %jd in %s --> was=%p new=%p"

	.comm	_ld_bind_not,4,2                ; @ld_bind_not
.subsections_via_symbols
