	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rsi), %r12
	movq	24(%rsi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	addq	$24, %r13
	movq	_GPDMA_DESC_BDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_lower_32_bits
	movq	%rax, 8(%r14)
	movq	%r15, %rax
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_upper_32_bits
	andl	$15, %eax
	shll	$24, %eax
	orl	%eax, (%r14)
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_lower_32_bits
	movq	%rax, 16(%r14)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_upper_32_bits
	shll	$28, %eax
	orl	%eax, (%r14)
LBB0_4:
	movq	_MAX_BD_NUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$2, (%rbx)
	jl	LBB0_9
## %bb.5:
	movl	$24, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_MAX_BD_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	addq	$24, %r13
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movq	%rax, -16(%r12,%r13)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_upper_32_bits
	andl	$15, %eax
	shll	$24, %eax
	orl	%eax, -20(%r12,%r13)
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPDMA_DESC_BDP,4,2             ## @GPDMA_DESC_BDP
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldp	x21, x22, [x1, #16]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x19, #8]
	add	x23, x8, #24
Lloh0:
	adrp	x8, _GPDMA_DESC_BDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPDMA_DESC_BDP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x23
	bl	_lower_32_bits
	str	x0, [x22, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_upper_32_bits
	ubfiz	w8, w0, #24, #4
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
LBB0_2:
	ldr	x23, [x19]
	mov	x0, x23
	bl	_lower_32_bits
	str	x0, [x22, #16]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_upper_32_bits
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #28
	str	w8, [x22]
LBB0_4:
Lloh3:
	adrp	x23, _MAX_BD_NUM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_BD_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.5:
	mov	x24, #0
	mov	x25, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	sub	x8, x8, #1
	add	x24, x24, #24
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x24, x8
	add	x22, x8, #24
	mov	x0, x22
	bl	_lower_32_bits
	add	x26, x21, x24
	str	x0, [x26, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_upper_32_bits
	ubfiz	w8, w0, #24, #4
	ldr	w9, [x26, #4]
	orr	w8, w8, w9
	str	w8, [x26, #4]
	b	LBB0_6
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GPDMA_DESC_BDP,4,2             ; @GPDMA_DESC_BDP
	.comm	_MAX_BD_NUM,4,2                 ; @MAX_BD_NUM
	.no_dead_strip	_msdc_init_gpd_bd
.subsections_via_symbols
