	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt215_devinit_mmio
_gt215_devinit_mmio:                    ## @gt215_devinit_mmio
	.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
	movl	%esi, %ebx
	callq	_nv50_devinit
	movq	%rax, %r14
	movq	_gt215_devinit_mmio_part@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	8(%r14), %rdi
	addq	$12, %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %eax
	addq	$12, %rcx
	testl	%eax, %eax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %eax
	jg	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, -8(%rcx)
	jl	LBB0_7
## %bb.4:
	movl	%ebx, %eax
	cltd
	idivl	-4(%rcx)
	movl	%eax, %r15d
	andl	$7, %r15d
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nvkm_rd32
	movl	%eax, (%r14)
LBB0_6:
	shrl	$16, %eax
	movzbl	%al, %edi
	callq	_hweight8
	cmpl	%eax, %r15d
	movl	$-1, %eax
	cmovgel	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gt215_devinit_mmio_part,8,3    ## @gt215_devinit_mmio_part
	.no_dead_strip	_gt215_devinit_mmio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt215_devinit_mmio
_gt215_devinit_mmio:                    ; @gt215_devinit_mmio
	.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
	bl	_nv50_devinit
Lloh0:
	adrp	x8, _gt215_devinit_mmio_part@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gt215_devinit_mmio_part@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cbz	w9, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0, #8]
	add	x8, x8, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #4]
	add	x8, x8, #12
	cbz	w9, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w19
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w9, [x8, #-4]
	cmp	w9, w19
	b.lt	LBB0_2
; %bb.5:
	ldr	w8, [x8]
	sdiv	w8, w19, w8
	and	w21, w8, #0x7
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
; %bb.6:
	mov	w1, #5440
	bl	_nvkm_rd32
	mov	x8, x0
	str	w0, [x20]
LBB0_7:
	ubfx	w0, w8, #16, #8
	bl	_hweight8
	cmp	w21, w0
	csinv	w19, w19, wzr, lt
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gt215_devinit_mmio_part,8,3    ; @gt215_devinit_mmio_part
	.no_dead_strip	_gt215_devinit_mmio
.subsections_via_symbols
