	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_rom
_select_rom:                            ## @select_rom
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edi killed $edi def $rdi
	leal	-4362077(%rdi), %ecx
	movl	$1, %eax
	cmpl	$24494735, %ecx                 ## imm = 0x175C28F
	jb	LBB0_5
## %bb.1:
	movl	%edi, %ecx
	andl	$-2, %ecx
	movl	$2, %eax
	cmpl	$30828134, %ecx                 ## imm = 0x1D66666
	je	LBB0_5
## %bb.2:
	movl	$3, %eax
	cmpl	$33554432, %edi                 ## imm = 0x2000000
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	cmpl	$134217729, %edi                ## imm = 0x8000001
	jb	LBB0_5
## %bb.4:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_select_rom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_rom
_select_rom:                            ; @select_rom
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #1064, lsl #12          ; =4358144
	sub	w8, w8, #3933
	mov	w9, #49807
	movk	w9, #373, lsl #16
	cmp	w8, w9
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	mov	w8, #13107
	movk	w8, #235, lsl #16
	cmp	w8, w0, lsr #1
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #2
	ret
LBB0_4:
	mov	w8, #33554432
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #3
	ret
LBB0_6:
	mov	w8, #1
	movk	w8, #2048, lsl #16
	cmp	w0, w8
	b.hs	LBB0_8
; %bb.7:
	mov	w0, #0
	ret
LBB0_8:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_select_rom
.subsections_via_symbols
