	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_eeprom_verify_signature
_iwl_eeprom_verify_signature:           ## @iwl_eeprom_verify_signature
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_CSR_EEPROM_GP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iwl_read32
	movl	%eax, %ebx
	movq	_CSR_EEPROM_GP_VALID_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_IWL_DEBUG_EEPROM
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %ebx
	jne	LBB0_8
## %bb.2:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$130, %edx
LBB0_4:
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_9
LBB0_8:
	testl	%r12d, %r12d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_6:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_EEPROM_GP,4,2              ## @CSR_EEPROM_GP
	.comm	_CSR_EEPROM_GP_VALID_MSK,4,2    ## @CSR_EEPROM_GP_VALID_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM signature=0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"EEPROM with bad signature: 0x%08x\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"OTP with bad signature: 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"bad EEPROM/OTP signature, type=%s, EEPROM_GP=0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"OTP"

L_.str.5:                               ## @.str.5
	.asciz	"EEPROM"

	.no_dead_strip	_iwl_eeprom_verify_signature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_eeprom_verify_signature
_iwl_eeprom_verify_signature:           ; @iwl_eeprom_verify_signature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CSR_EEPROM_GP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR_EEPROM_GP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iwl_read32
Lloh3:
	adrp	x8, _CSR_EEPROM_GP_VALID_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_EEPROM_GP_VALID_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_IWL_DEBUG_EEPROM
	sub	w8, w21, #128
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.1:
	cbz	w20, LBB0_5
; %bb.2:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_3:
	cmp	w21, #130
	b.ne	LBB0_6
; %bb.4:
	cbz	w20, LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, l_.str.4@PAGE
Lloh11:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh12:
	adrp	x9, l_.str.5@PAGE
Lloh13:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w20, #0
	csel	x8, x9, x8, eq
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x8, x21, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	w8, #130
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_IWL_ERR
Lloh18:
	adrp	x8, _ENOENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_EEPROM_GP,4,2              ; @CSR_EEPROM_GP
	.comm	_CSR_EEPROM_GP_VALID_MSK,4,2    ; @CSR_EEPROM_GP_VALID_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM signature=0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"EEPROM with bad signature: 0x%08x\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"OTP with bad signature: 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"bad EEPROM/OTP signature, type=%s, EEPROM_GP=0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"OTP"

l_.str.5:                               ; @.str.5
	.asciz	"EEPROM"

	.no_dead_strip	_iwl_eeprom_verify_signature
.subsections_via_symbols
