	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coff_get_slot
_coff_get_slot:                         ## @coff_get_slot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_COFF_SLOTS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%esi, %eax
	jle	LBB0_1
LBB0_5:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%rbx), %rcx
LBB0_7:
	movslq	%r14d, %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	subl	%eax, %r14d
	movq	%rbx, %r12
	cmpl	%eax, %r14d
	jl	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, (%r12)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%r12), %rbx
	movl	(%r15), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_COFF_SLOTS,4,2                 ## @COFF_SLOTS
	.no_dead_strip	_coff_get_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coff_get_slot
_coff_get_slot:                         ; @coff_get_slot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _COFF_SLOTS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _COFF_SLOTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	b.le	LBB0_5
LBB0_1:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	w0, #16
	bl	_xmalloc
	str	x0, [x20]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x20]
LBB0_3:
	ldr	x8, [x8]
	add	x0, x8, w19, sxtw #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x9, #8
	sub	w19, w19, w8
	cmp	w19, w8
	b.lt	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cbnz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #16
	bl	_xmalloc
	str	x0, [x20]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x9, [x20]
	ldr	w8, [x21]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COFF_SLOTS,4,2                 ; @COFF_SLOTS
	.no_dead_strip	_coff_get_slot
.subsections_via_symbols
