	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_hdw_load_modules
_pvr2_hdw_load_modules:                 ## @pvr2_hdw_load_modules
	.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	%rdi, %r14
	movq	8(%rdi), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_request_module
	incq	%rbx
	movl	16(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
## %bb.3:
	movq	8(%r14), %r15
LBB0_4:
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.5:
	movl	$1, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_pvr2_hdw_load_subdev
	testq	%rax, %rax
	movl	$0, %eax
	cmovsl	%eax, %r13d
	incq	%r12
	movl	(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jb	LBB0_6
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$1, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pvr2_hdw_render_useless        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pvr2_hdw_load_modules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_hdw_load_modules
_pvr2_hdw_load_modules:                 ; @pvr2_hdw_load_modules
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x21, lsl #2]
	bl	_request_module
	add	x21, x21, #1
	ldr	w8, [x20, #16]
	cmp	x21, x8
	b.lo	LBB0_2
; %bb.3:
	ldr	x20, [x19, #8]
LBB0_4:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_pvr2_hdw_load_subdev
	cmp	x0, #0
	csel	w21, wzr, w21, lt
	add	x23, x23, #1
	ldr	w8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.lo	LBB0_6
; %bb.7:
	cbz	w21, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pvr2_hdw_render_useless
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pvr2_hdw_load_modules
.subsections_via_symbols
