	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BuildTOC                       ## -- Begin function BuildTOC
	.p2align	4, 0x90
_BuildTOC:                              ## @BuildTOC
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_disc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	8(%rax), %rdx
	movq	_isoTOC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,8), %edi
	shll	$24, %edi
	orl	4(%rdx,%rsi,8), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_isoTOC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_4:
	movzbl	3(%rcx), %edx
	shll	$24, %edx
	orl	$65536, %edx                    ## imm = 0x10000
	movl	%edx, 396(%rcx)
	movslq	(%rax), %rdx
	movzbl	-1(%rcx,%rdx,4), %esi
	shll	$24, %esi
	shll	$16, %edx
	orl	%esi, %edx
	movl	%edx, 400(%rcx)
	movslq	(%rax), %rdx
	movzbl	-1(%rcx,%rdx,4), %edx
	shll	$24, %edx
	orl	4(%rax), %edx
	movl	%edx, 404(%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disc,8,3                       ## @disc
	.comm	_isoTOC,8,3                     ## @isoTOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BuildTOC                       ; -- Begin function BuildTOC
	.p2align	2
_BuildTOC:                              ; @BuildTOC
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _disc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _disc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #0
	b.le	LBB0_3
; %bb.1:
	mov	x10, #0
	ldr	x11, [x8, #8]
Lloh3:
	adrp	x9, _isoTOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _isoTOC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x11, x11, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w12, w13, [x11, #-4]
	orr	w12, w13, w12, lsl #24
	str	w12, [x9, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x12, [x8]
	add	x11, x11, #8
	cmp	x10, x12
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _isoTOC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _isoTOC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
LBB0_4:
	ldrb	w10, [x9, #3]
	mov	w11, #65536
	bfi	w11, w10, #24, #8
	str	w11, [x9, #396]
	ldr	w10, [x8]
	sub	w11, w10, #1
	add	x11, x9, w11, sxtw #2
	ldrb	w11, [x11, #3]
	lsl	w11, w11, #24
	orr	w10, w11, w10, lsl #16
	str	w10, [x9, #400]
	ldp	w10, w8, [x8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x10, x9, x10, lsl #2
	ldurb	w10, [x10, #-1]
	orr	w8, w8, w10, lsl #24
	str	w8, [x9, #404]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_disc,8,3                       ; @disc
	.comm	_isoTOC,8,3                     ; @isoTOC
.subsections_via_symbols
