	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_nvm_is_otp
_iwl_nvm_is_otp:                        ## @iwl_nvm_is_otp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CSR_HW_REV_TYPE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%rdi), %ecx
	xorl	%eax, %eax
	leal	-129(%rcx), %edx
	cmpl	$4, %edx
	jae	LBB0_1
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_IWL_ERR
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_CSR_OTP_GP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iwl_read32
	movl	%eax, %ecx
	movq	_CSR_OTP_GP_REG_DEVICE_SELECT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_HW_REV_TYPE_MSK,4,2        ## @CSR_HW_REV_TYPE_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown hardware type\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_CSR_OTP_GP_REG,4,2             ## @CSR_OTP_GP_REG
	.comm	_CSR_OTP_GP_REG_DEVICE_SELECT,4,2 ## @CSR_OTP_GP_REG_DEVICE_SELECT
	.no_dead_strip	_iwl_nvm_is_otp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_nvm_is_otp
_iwl_nvm_is_otp:                        ; @iwl_nvm_is_otp
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CSR_HW_REV_TYPE_MSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSR_HW_REV_TYPE_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w9, w8, #129
	cmp	w9, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_ERR
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh8:
	adrp	x8, _CSR_OTP_GP_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSR_OTP_GP_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_iwl_read32
Lloh11:
	adrp	x8, _CSR_OTP_GP_REG_DEVICE_SELECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_OTP_GP_REG_DEVICE_SELECT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_HW_REV_TYPE_MSK,4,2        ; @CSR_HW_REV_TYPE_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown hardware type\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_CSR_OTP_GP_REG,4,2             ; @CSR_OTP_GP_REG
	.comm	_CSR_OTP_GP_REG_DEVICE_SELECT,4,2 ; @CSR_OTP_GP_REG_DEVICE_SELECT
	.no_dead_strip	_iwl_nvm_is_otp
.subsections_via_symbols
