	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_encoders
_register_encoders:                     ## @register_encoders
	.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, %r13
	callq	_hva_to_dev
	movq	%rax, %r14
	movq	_hva_encoders@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	_HVA_MAX_ENCODERS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	cmpq	%r8, %rax
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	8(%r13), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%r13)
	movq	%rcx, (%rdx,%rax,8)
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_info
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hva_encoders,8,3               ## @hva_encoders
	.comm	_HVA_MAX_ENCODERS,8,3           ## @HVA_MAX_ENCODERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s failed to register %s encoder (%d maximum reached)\n"

	.comm	_HVA_PREFIX,4,2                 ## @HVA_PREFIX
L_.str.1:                               ## @.str.1
	.asciz	"%s %s encoder registered\n"

	.no_dead_strip	_register_encoders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_encoders
_register_encoders:                     ; @register_encoders
	.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	x20, x0
	bl	_hva_to_dev
	mov	x19, x0
Lloh0:
	adrp	x22, _hva_encoders@GOTPAGE
Lloh1:
	ldr	x22, [x22, _hva_encoders@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x25, _HVA_MAX_ENCODERS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HVA_MAX_ENCODERS@GOTPAGEOFF]
Lloh4:
	adrp	x24, _HVA_PREFIX@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HVA_PREFIX@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x4, [x25]
	cmp	x8, x4
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22]
	lsl	x10, x23, #3
	ldr	x9, [x9, x10]
	ldr	x11, [x20, #8]
	add	x12, x8, #1
	str	x9, [x11, x8, lsl #3]
	str	x12, [x20]
	ldr	w2, [x24]
	ldr	x8, [x22]
	ldr	x8, [x8, x10]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_dev_info
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_2
LBB0_4:
	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
LBB0_5:
	ldr	w2, [x24]
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w3, [x8]
	mov	x0, x19
	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
	b	_dev_dbg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hva_encoders,8,3               ; @hva_encoders
	.comm	_HVA_MAX_ENCODERS,8,3           ; @HVA_MAX_ENCODERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s failed to register %s encoder (%d maximum reached)\n"

	.comm	_HVA_PREFIX,4,2                 ; @HVA_PREFIX
l_.str.1:                               ; @.str.1
	.asciz	"%s %s encoder registered\n"

	.no_dead_strip	_register_encoders
.subsections_via_symbols
