	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_get_ucode_image
_iwl_get_ucode_image:                   ## @iwl_get_ucode_image
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IWL_UCODE_TYPE_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movl	%esi, %eax
	shlq	$2, %rax
	addq	(%rdi), %rax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TYPE_MAX,4,2         ## @IWL_UCODE_TYPE_MAX
	.no_dead_strip	_iwl_get_ucode_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_get_ucode_image
_iwl_get_ucode_image:                   ; @iwl_get_ucode_image
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IWL_UCODE_TYPE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TYPE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	add	x0, x8, w1, uxtw #2
	ret
LBB0_2:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TYPE_MAX,4,2         ; @IWL_UCODE_TYPE_MAX
	.no_dead_strip	_iwl_get_ucode_image
.subsections_via_symbols
