	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_got
_allocate_got:                          ## @allocate_got
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rax
	movq	_PLT_VXWORKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%rdi), %rcx
	movl	(%rcx), %eax
	addl	%eax, %esi
	movl	%esi, (%rcx)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_2:
	movq	_PLT_NEW@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	32764(,%rdx,4), %ecx
	movl	8(%rdi), %eax
	movl	%eax, %edx
	subl	%esi, %edx
	jae	LBB0_8
## %bb.3:
	movq	16(%rdi), %r8
	movl	(%r8), %eax
	leal	(%rax,%rsi), %r9d
	movl	%ecx, %edx
	subl	%eax, %edx
	jb	LBB0_6
## %bb.4:
	cmpl	%ecx, %r9d
	jbe	LBB0_6
## %bb.5:
	movl	%edx, 8(%rdi)
	addl	12(%rdi), %ecx
	movl	%ecx, (%r8)
	addl	%ecx, %esi
	movl	%esi, %r9d
	movl	%ecx, %eax
LBB0_6:
	movl	%r9d, (%r8)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	subl	%eax, %ecx
	movl	%edx, 8(%rdi)
	movl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLT_VXWORKS,8,3                ## @PLT_VXWORKS
	.comm	_PLT_NEW,8,3                    ## @PLT_NEW
	.no_dead_strip	_allocate_got
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_got
_allocate_got:                          ; @allocate_got
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _PLT_VXWORKS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PLT_VXWORKS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	add	w9, w0, w1
	str	w9, [x8]
	ret
LBB0_2:
Lloh3:
	adrp	x10, _PLT_NEW@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PLT_NEW@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #32764
	mov	w10, #32768
	csel	w10, w10, w9, eq
	ldr	w11, [x8, #8]
	subs	w9, w11, w1
	b.hs	LBB0_6
; %bb.3:
	ldr	x9, [x8, #16]
	ldr	w0, [x9]
	add	w11, w0, w1
	subs	w12, w10, w0
	ccmp	w11, w10, #0, hs
	b.ls	LBB0_5
; %bb.4:
	str	w12, [x8, #8]
	ldr	w8, [x8, #12]
	add	w0, w8, w10
	add	w11, w0, w1
	str	w0, [x9]
LBB0_5:
	str	w11, [x9]
	ret
LBB0_6:
	sub	w0, w10, w11
	str	w9, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PLT_VXWORKS,8,3                ; @PLT_VXWORKS
	.comm	_PLT_NEW,8,3                    ; @PLT_NEW
	.no_dead_strip	_allocate_got
.subsections_via_symbols
