	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AutoChooseROM
_AutoChooseROM:                         ## @AutoChooseROM
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SYSROM_roms@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rdi), %eax
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rdx
	movq	(%rcx,%rdx,8), %rdx
	cmpb	$0, (%rdx)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rdi), %eax
	addq	$4, %rdi
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.3:
	movl	$-1, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSROM_roms,8,3                ## @SYSROM_roms
	.no_dead_strip	_AutoChooseROM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AutoChooseROM
_AutoChooseROM:                         ; @AutoChooseROM
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SYSROM_roms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSROM_roms@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x0], #4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, w8, sxtw #3]
	ldrb	w10, [x10]
	cbnz	w10, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x0], #4
	cmn	w8, #1
	b.ne	LBB0_1
LBB0_3:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSROM_roms,8,3                ; @SYSROM_roms
	.no_dead_strip	_AutoChooseROM
.subsections_via_symbols
