	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_udevice_child_get
_nvkm_udevice_child_get:                ## @nvkm_udevice_child_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	callq	_nvkm_udevice
	movq	(%rax), %r15
	movq	_NVKM_ENGINE_DMAOBJ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_NVKM_ENGINE_FIFO@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	btsq	%rax, %rbx
	movq	_NVKM_ENGINE_DISP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rbx
	movq	_NVKM_ENGINE_PM@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rbx
	movq	$0, -56(%rbp)
	movq	%rbx, %rdi
	callq	___ffs64
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_nvkm_device_engine
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 16(%rdi)
	movl	%r12d, %esi
	leaq	-56(%rbp), %rdx
	callq	*%rcx
	subl	%eax, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	$-2, %r14
	movl	%r13d, %ecx
	rolq	%cl, %r14
	movq	%rbx, %rdi
	andq	%r14, %rdi
	callq	___ffs64
	movl	%eax, %r13d
	movq	-56(%rbp), %rax
	andq	%r14, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movl	%r12d, %ecx
	subl	$1, %ecx
	jae	LBB0_11
## %bb.8:
	movq	_nvkm_control_oclass@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.13:
	addl	$-2, %r12d
	movl	%r12d, %ecx
LBB0_14:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	testl	%ecx, %ecx
	jne	LBB0_16
LBB0_9:
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 12(%rdx)
LBB0_10:
	movq	_nvkm_udevice_child_new@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 8(%rdx)
	movq	%rax, (%rdx)
	xorl	%eax, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_DMAOBJ,8,3         ## @NVKM_ENGINE_DMAOBJ
	.comm	_NVKM_ENGINE_FIFO,8,3           ## @NVKM_ENGINE_FIFO
	.comm	_NVKM_ENGINE_DISP,8,3           ## @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_PM,8,3             ## @NVKM_ENGINE_PM
	.comm	_nvkm_control_oclass,4,2        ## @nvkm_control_oclass
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvkm_udevice_child_new,4,2     ## @nvkm_udevice_child_new
	.no_dead_strip	_nvkm_udevice_child_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_udevice_child_get
_nvkm_udevice_child_get:                ; @nvkm_udevice_child_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_nvkm_udevice
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _NVKM_ENGINE_DMAOBJ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_DMAOBJ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w24, #1
	lsl	x8, x24, x8
Lloh3:
	adrp	x9, _NVKM_ENGINE_FIFO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVKM_ENGINE_FIFO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x9, x24, x9
	orr	x8, x9, x8
Lloh6:
	adrp	x9, _NVKM_ENGINE_DISP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVKM_ENGINE_DISP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x9, x24, x9
	orr	x8, x8, x9
Lloh9:
	adrp	x9, _NVKM_ENGINE_PM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVKM_ENGINE_PM@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsl	x9, x24, x9
	orr	x22, x8, x9
	str	xzr, [sp, #8]
	mov	x0, x22
	bl	___ffs64
	mov	x23, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_device_engine
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x0, [x19, #16]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	blr	x8
	sub	w21, w21, w0
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	lsl	x8, x24, x23
	bic	x22, x22, x8
	mov	x0, x22
	bl	___ffs64
	ldr	x8, [sp, #8]
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	cbz	x8, LBB0_1
LBB0_6:
	cbnz	x8, LBB0_16
; %bb.7:
	cbz	w21, LBB0_14
; %bb.8:
	sub	w9, w21, #1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.9:
	cbz	w9, LBB0_15
; %bb.10:
	sub	w9, w21, #2
LBB0_11:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.12:
	cbz	w9, LBB0_15
LBB0_13:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_14:
Lloh15:
	adrp	x8, _nvkm_control_oclass@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nvkm_control_oclass@GOTPAGEOFF]
LBB0_15:
	ldr	w9, [x8]
	str	w9, [x19, #12]
LBB0_16:
	mov	w0, #0
Lloh17:
	adrp	x9, _nvkm_udevice_child_new@GOTPAGE
Lloh18:
	ldr	x9, [x9, _nvkm_udevice_child_new@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	str	x8, [x19]
LBB0_17:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_DMAOBJ,8,3         ; @NVKM_ENGINE_DMAOBJ
	.comm	_NVKM_ENGINE_FIFO,8,3           ; @NVKM_ENGINE_FIFO
	.comm	_NVKM_ENGINE_DISP,8,3           ; @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_PM,8,3             ; @NVKM_ENGINE_PM
	.comm	_nvkm_control_oclass,4,2        ; @nvkm_control_oclass
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvkm_udevice_child_new,4,2     ; @nvkm_udevice_child_new
	.no_dead_strip	_nvkm_udevice_child_get
.subsections_via_symbols
