	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_img_optype
_be_get_img_optype:                     ## @be_get_img_optype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_le16_to_cpu
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_17
## %bb.1:
	addl	$-128, %r14d
	cmpl	$11, %r14d
	ja	LBB0_2
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	_OPTYPE_UFI_DIR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movl	$65535, %eax                    ## imm = 0xFFFF
	jmp	LBB0_17
LBB0_13:
	movq	_OPTYPE_REDBOOT_DIR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_OPTYPE_REDBOOT_CONFIG@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movq	_OPTYPE_PXE_BIOS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	_OPTYPE_BIOS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	movq	_OPTYPE_FCOE_BIOS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	_OPTYPE_NCSI_FW@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	_OPTYPE_FLASHISM_JUMPVECTOR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movq	_OPTYPE_SH_PHY_FW@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	movq	_OPTYPE_ISCSI_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	_OPTYPE_ISCSI_BACKUP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	_OPTYPE_REDBOOT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_OPTYPE_ISCSI_ACTIVE,4,2        ## @OPTYPE_ISCSI_ACTIVE
	.comm	_OPTYPE_REDBOOT,4,2             ## @OPTYPE_REDBOOT
	.comm	_OPTYPE_BIOS,4,2                ## @OPTYPE_BIOS
	.comm	_OPTYPE_PXE_BIOS,4,2            ## @OPTYPE_PXE_BIOS
	.comm	_OPTYPE_FCOE_BIOS,4,2           ## @OPTYPE_FCOE_BIOS
	.comm	_OPTYPE_ISCSI_BACKUP,4,2        ## @OPTYPE_ISCSI_BACKUP
	.comm	_OPTYPE_NCSI_FW,4,2             ## @OPTYPE_NCSI_FW
	.comm	_OPTYPE_FLASHISM_JUMPVECTOR,4,2 ## @OPTYPE_FLASHISM_JUMPVECTOR
	.comm	_OPTYPE_SH_PHY_FW,4,2           ## @OPTYPE_SH_PHY_FW
	.comm	_OPTYPE_REDBOOT_DIR,4,2         ## @OPTYPE_REDBOOT_DIR
	.comm	_OPTYPE_REDBOOT_CONFIG,4,2      ## @OPTYPE_REDBOOT_CONFIG
	.comm	_OPTYPE_UFI_DIR,4,2             ## @OPTYPE_UFI_DIR
	.no_dead_strip	_be_get_img_optype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_img_optype
_be_get_img_optype:                     ; @be_get_img_optype
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	lsr	x0, x0, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_le32_to_cpu
	mov	x19, x0
	mov	x0, x20
	bl	_le16_to_cpu
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.1:
	sub	w8, w19, #128
	cmp	w8, #11
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _OPTYPE_UFI_DIR@GOTPAGE
Lloh3:
	ld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_ISCSI_ACTIVE@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh22:
	adrp	x8, _OPTYPE_ISCSI_BACKUP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OPTYPE_ISCSI_BACKUP@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh24:
	adrp	x8, _OPTYPE_REDBOOT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OPTYPE_REDBOOT@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
                                        ; -- End function
	.comm	_OPTYPE_ISCSI_ACTIVE,4,2        ; @OPTYPE_ISCSI_ACTIVE
	.comm	_OPTYPE_REDBOOT,4,2             ; @OPTYPE_REDBOOT
	.comm	_OPTYPE_BIOS,4,2                ; @OPTYPE_BIOS
	.comm	_OPTYPE_PXE_BIOS,4,2            ; @OPTYPE_PXE_BIOS
	.comm	_OPTYPE_FCOE_BIOS,4,2           ; @OPTYPE_FCOE_BIOS
	.comm	_OPTYPE_ISCSI_BACKUP,4,2        ; @OPTYPE_ISCSI_BACKUP
	.comm	_OPTYPE_NCSI_FW,4,2             ; @OPTYPE_NCSI_FW
	.comm	_OPTYPE_FLASHISM_JUMPVECTOR,4,2 ; @OPTYPE_FLASHISM_JUMPVECTOR
	.comm	_OPTYPE_SH_PHY_FW,4,2           ; @OPTYPE_SH_PHY_FW
	.comm	_OPTYPE_REDBOOT_DIR,4,2         ; @OPTYPE_REDBOOT_DIR
	.comm	_OPTYPE_REDBOOT_CONFIG,4,2      ; @OPTYPE_REDBOOT_CONFIG
	.comm	_OPTYPE_UFI_DIR,4,2             ; @OPTYPE_UFI_DIR
	.no_dead_strip	_be_get_img_optype
.subsections_via_symbols
