	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdc_init_gpd_bd
_msdc_init_gpd_bd:                      ## @msdc_init_gpd_bd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	16(%rsi), %r14
	movq	24(%rsi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	$1, (%rbx)
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	8(%r15), %rax
	addq	$24, %rax
	movq	%rax, 8(%rbx)
	movq	_MAX_BD_NUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %edx
	cmpl	$2, %edx
	jl	LBB0_8
## %bb.1:
	decl	%edx
	movq	(%r15), %r8
	leaq	-1(%rdx), %rsi
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %edx
	leaq	48(%r8), %rdi
	leaq	8(%r14), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-24(%rdi), %rax
	movq	%rax, (%rbx)
	movq	%rdi, 24(%rbx)
	leaq	24(%rdi), %rax
	movq	%rax, 48(%rbx)
	addq	$4, %rsi
	leaq	48(%rdi), %rax
	movq	%rax, 72(%rbx)
	addq	$96, %rdi
	addq	$96, %rbx
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rax
	leaq	(%r14,%rax), %rdx
	addq	$8, %rdx
	addq	%r8, %rax
	addq	$24, %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rsi), %rdi
	movq	%rdi, (%rdx,%rsi)
	addq	$24, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BD_NUM,4,2                 ## @MAX_BD_NUM
	.no_dead_strip	_msdc_init_gpd_bd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdc_init_gpd_bd
_msdc_init_gpd_bd:                      ; @msdc_init_gpd_bd
	.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	x20, x1
	ldp	x19, x21, [x1, #16]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #1
	str	w8, [x21]
	ldp	x8, x9, [x20]
	add	x9, x9, #24
	stp	x9, x8, [x21, #8]
Lloh0:
	adrp	x21, _MAX_BD_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_BD_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.1:
	sub	w9, w8, #1
	ldr	x8, [x20]
	cmp	w9, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x9, #0xfffffffc
	add	x11, x8, #96
	add	x12, x19, #56
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x11, #72
	sub	x15, x11, #48
	sub	x16, x11, #24
	stur	x14, [x12, #-48]
	stur	x15, [x12, #-24]
	str	x16, [x12]
	str	x11, [x12, #24]
	add	x11, x11, #96
	add	x12, x12, #96
	subs	x13, x13, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	add	x11, x10, x10, lsl #1
	lsl	x12, x11, #3
	add	x11, x19, x12
	add	x11, x11, #8
	sub	x9, x9, x10
	add	x8, x8, x12
	add	x8, x8, #24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [x11], #24
	add	x8, x8, #24
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BD_NUM,4,2                 ; @MAX_BD_NUM
	.no_dead_strip	_msdc_init_gpd_bd
.subsections_via_symbols
