	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_hubbub_create            ## -- Begin function dcn20_hubbub_create
	.p2align	4, 0x90
_dcn20_hubbub_create:                   ## @dcn20_hubbub_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_hubbub_reg@GOTPCREL(%rip), %rdx
	movq	_hubbub_shift@GOTPCREL(%rip), %rcx
	movq	_hubbub_mask@GOTPCREL(%rip), %r8
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_hubbub2_construct
	movq	_res_cap_nv10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	8(%r14), %rcx
	shlq	$2, %rax
	xorl	%edx, %edx
	movq	_vmid_regs@GOTPCREL(%rip), %r8
	movq	_vmid_shifts@GOTPCREL(%rip), %r9
	movq	_vmid_masks@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, 24(%rcx,%rdx,8)
	movq	(%r8), %rdi
	addq	%rdx, %rdi
	movq	%rdi, 16(%rcx,%rdx,8)
	movq	%r9, 8(%rcx,%rdx,8)
	movq	%rsi, (%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_hubbub_reg,4,2                 ## @hubbub_reg
	.comm	_hubbub_shift,4,2               ## @hubbub_shift
	.comm	_hubbub_mask,4,2                ## @hubbub_mask
	.comm	_res_cap_nv10,4,2               ## @res_cap_nv10
	.comm	_vmid_regs,8,3                  ## @vmid_regs
	.comm	_vmid_shifts,4,2                ## @vmid_shifts
	.comm	_vmid_masks,4,2                 ## @vmid_masks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function dcn20_hubbub_create
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dcn20_hubbub_create
	.p2align	2
_dcn20_hubbub_create:                   ; @dcn20_hubbub_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x2, _hubbub_reg@GOTPAGE
Lloh4:
	ldr	x2, [x2, _hubbub_reg@GOTPAGEOFF]
Lloh5:
	adrp	x3, _hubbub_shift@GOTPAGE
Lloh6:
	ldr	x3, [x3, _hubbub_shift@GOTPAGEOFF]
Lloh7:
	adrp	x4, _hubbub_mask@GOTPAGE
Lloh8:
	ldr	x4, [x4, _hubbub_mask@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_hubbub2_construct
Lloh9:
	adrp	x8, _res_cap_nv10@GOTPAGE
Lloh10:
	ldr	x8, [x8, _res_cap_nv10@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.2:
Lloh12:
	adrp	x8, _vmid_regs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmid_regs@GOTPAGEOFF]
	ldr	x12, [x20, #8]
Lloh14:
	adrp	x9, _vmid_shifts@GOTPAGE
Lloh15:
	ldr	x9, [x9, _vmid_shifts@GOTPAGEOFF]
Lloh16:
	adrp	x10, _vmid_masks@GOTPAGE
Lloh17:
	ldr	x10, [x10, _vmid_masks@GOTPAGEOFF]
	cmp	w11, #8
	b.lo	LBB0_7
; %bb.3:
	add	x13, x12, x11, lsl #5
	add	x14, x8, #8
	cmp	x12, x14
	ccmp	x13, x8, #0, lo
	b.hi	LBB0_7
; %bb.4:
	dup.2d	v3, x19
	and	x13, x11, #0xfffffff8
Lloh18:
	adrp	x14, lCPI0_0@PAGE
Lloh19:
	ldr	q4, [x14, lCPI0_0@PAGEOFF]
	mov	w14, #24
	dup.2d	v5, x14
	mov	w14, #16
	dup.2d	v6, x14
	mov	w14, #8
	dup.2d	v7, x14
	add	x15, x12, #128
	dup.2d	v0, x10
	mov	x14, x13
	dup.2d	v1, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ld1r.2d	{ v16 }, [x8]
	shl.2d	v17, v4, #2
	add.2d	v18, v16, v17
	add.2d	v22, v18, v7
	add.2d	v26, v18, v6
	add.2d	v2, v18, v5
	sub	x16, x15, #128
	sub	x17, x15, #64
	mov.16b	v20, v0
	mov.16b	v21, v1
	mov.16b	v23, v3
	mov.16b	v16, v0
	mov.16b	v17, v1
	mov.16b	v19, v3
	st4.2d	{ v16, v17, v18, v19 }, [x16]
	st4.2d	{ v20, v21, v22, v23 }, [x17]
	mov.16b	v24, v0
	mov.16b	v25, v1
	mov.16b	v27, v3
	add	x16, x15, #256
	st4.2d	{ v24, v25, v26, v27 }, [x15], #64
	st4.2d	{ v0, v1, v2, v3 }, [x15]
	add.2d	v4, v4, v7
	mov	x15, x16
	subs	x14, x14, #8
	b.ne	LBB0_5
; %bb.6:
	cmp	x13, x11
	b.ne	LBB0_8
	b	LBB0_10
LBB0_7:
	mov	x13, #0
LBB0_8:
	mov	w14, #1
	bfi	x14, x13, #2, #32
	add	x12, x12, x13, lsl #5
	add	x12, x12, #16
	sub	x11, x11, x13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [x12, #8]
	ldr	x13, [x8]
	add	x13, x13, x14
	sub	x13, x13, #1
	stp	x9, x13, [x12, #-8]
	stur	x10, [x12, #-16]
	add	x14, x14, #4
	add	x12, x12, #32
	subs	x11, x11, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdr	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_hubbub_reg,4,2                 ; @hubbub_reg
	.comm	_hubbub_shift,4,2               ; @hubbub_shift
	.comm	_hubbub_mask,4,2                ; @hubbub_mask
	.comm	_res_cap_nv10,4,2               ; @res_cap_nv10
	.comm	_vmid_regs,8,3                  ; @vmid_regs
	.comm	_vmid_shifts,4,2                ; @vmid_shifts
	.comm	_vmid_masks,4,2                 ; @vmid_masks
.subsections_via_symbols
