	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_parse_nvm_sections
_iwl_parse_nvm_sections:                ## @iwl_parse_nvm_sections
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	24(%rbx), %rax
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_IWL_NVM_EXT@GOTPCREL(%rip), %rdx
	movq	_NVM_SECTION_TYPE_SW@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rax,%rsi,8), %r14
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.10:
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	_IWL_NVM_SDP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cmpq	%r8, %rcx
	movq	_NVM_SECTION_TYPE_REGULATORY_SDP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_NVM_SECTION_TYPE_REGULATORY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	movq	%r10, %rsi
	cmoveq	%r9, %rsi
	movslq	%esi, %rsi
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_12
## %bb.13:
	movq	8(%rbx), %rsi
	movq	(%rsi), %rdx
	movq	(%rax,%rdx,8), %r15
	testq	%r15, %r15
	jne	LBB0_16
## %bb.14:
	movq	_NVM_SECTION_TYPE_MAC_OVERRIDE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_15
LBB0_16:
	movq	_NVM_SECTION_TYPE_PHY_SKU@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r11
	testq	%r11, %r11
	jne	LBB0_4
## %bb.17:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	movq	8(%rbx), %rsi
	movq	(%rsi), %rdx
	movq	(%rax,%rdx,8), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.3:
	movq	_NVM_SECTION_TYPE_PHY_SKU@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r11
	movq	_IWL_NVM_SDP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	movq	_NVM_SECTION_TYPE_REGULATORY_SDP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_NVM_SECTION_TYPE_REGULATORY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
LBB0_4:
	movq	_NVM_SECTION_TYPE_CALIBRATION@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_NVM_SECTION_TYPE_MAC_OVERRIDE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r12
	cmpq	%r8, %rcx
	cmoveq	%r9, %r10
	movq	(%rax,%r10,8), %r13
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	xorl	%r10d, %r10d
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movq	_IWL_UCODE_TLV_CAPA_LAR_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r11, %r12
	callq	_fw_has_capa
	movq	%r12, %r11
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	xorl	%r10d, %r10d
	testq	%rax, %rax
	setne	%r10b
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	subq	$8, %rsp
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r12
	callq	_iwl_parse_nvm_data
	addq	$72, %rsp
	jmp	LBB0_7
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
LBB0_9:
	movq	%rbx, %rdi
	callq	_IWL_ERR
	xorl	%eax, %eax
	addq	$24, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_NVM_EXT,8,3                ## @IWL_NVM_EXT
	.comm	_NVM_SECTION_TYPE_SW,8,3        ## @NVM_SECTION_TYPE_SW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't parse empty OTP/NVM sections\n"

	.comm	_IWL_NVM_SDP,8,3                ## @IWL_NVM_SDP
	.comm	_NVM_SECTION_TYPE_REGULATORY_SDP,8,3 ## @NVM_SECTION_TYPE_REGULATORY_SDP
	.comm	_NVM_SECTION_TYPE_REGULATORY,8,3 ## @NVM_SECTION_TYPE_REGULATORY
L_.str.1:                               ## @.str.1
	.asciz	"Can't parse empty family 8000 OTP/NVM sections\n"

	.comm	_NVM_SECTION_TYPE_MAC_OVERRIDE,8,3 ## @NVM_SECTION_TYPE_MAC_OVERRIDE
L_.str.2:                               ## @.str.2
	.asciz	"Can't parse mac_address, empty sections\n"

	.comm	_NVM_SECTION_TYPE_PHY_SKU,8,3   ## @NVM_SECTION_TYPE_PHY_SKU
L_.str.3:                               ## @.str.3
	.asciz	"Can't parse phy_sku in B0, empty sections\n"

	.comm	_NVM_SECTION_TYPE_CALIBRATION,8,3 ## @NVM_SECTION_TYPE_CALIBRATION
	.comm	_iwlwifi_mod_params,4,2         ## @iwlwifi_mod_params
	.comm	_IWL_UCODE_TLV_CAPA_LAR_SUPPORT,4,2 ## @IWL_UCODE_TLV_CAPA_LAR_SUPPORT
	.no_dead_strip	_iwl_parse_nvm_sections
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_parse_nvm_sections
_iwl_parse_nvm_sections:                ; @iwl_parse_nvm_sections
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	x0, x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _IWL_NVM_EXT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IWL_NVM_EXT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _NVM_SECTION_TYPE_SW@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NVM_SECTION_TYPE_SW@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x20, [x8, x11, lsl #3]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.1:
	cbz	x20, LBB0_12
; %bb.2:
Lloh6:
	adrp	x10, _IWL_NVM_SDP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IWL_NVM_SDP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _NVM_SECTION_TYPE_REGULATORY_SDP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NVM_SECTION_TYPE_REGULATORY_SDP@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _NVM_SECTION_TYPE_REGULATORY@GOTPAGE
Lloh13:
	ldr	x12, [x12, _NVM_SECTION_TYPE_REGULATORY@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x9, x10
	csel	x13, x11, x12, eq
	sbfiz	x13, x13, #3, #32
	ldr	x13, [x8, x13]
	cbz	x13, LBB0_12
; %bb.3:
	ldr	x1, [x19, #8]
	ldr	x13, [x1]
	ldr	x21, [x8, x13, lsl #3]
	cbnz	x21, LBB0_5
; %bb.4:
Lloh15:
	adrp	x13, _NVM_SECTION_TYPE_MAC_OVERRIDE@GOTPAGE
Lloh16:
	ldr	x13, [x13, _NVM_SECTION_TYPE_MAC_OVERRIDE@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	ldr	x13, [x8, x13, lsl #3]
	cbz	x13, LBB0_18
LBB0_5:
Lloh18:
	adrp	x13, _NVM_SECTION_TYPE_PHY_SKU@GOTPAGE
Lloh19:
	ldr	x13, [x13, _NVM_SECTION_TYPE_PHY_SKU@GOTPAGEOFF]
Lloh20:
	ldr	x13, [x13]
	ldr	x22, [x8, x13, lsl #3]
	cbnz	x22, LBB0_10
; %bb.6:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_7:
	cbz	x20, LBB0_13
; %bb.8:
	ldr	x1, [x19, #8]
	ldr	x10, [x1]
	ldr	x21, [x8, x10, lsl #3]
	cbz	x21, LBB0_13
; %bb.9:
Lloh23:
	adrp	x10, _NVM_SECTION_TYPE_PHY_SKU@GOTPAGE
Lloh24:
	ldr	x10, [x10, _NVM_SECTION_TYPE_PHY_SKU@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	ldr	x22, [x8, x10, lsl #3]
Lloh26:
	adrp	x10, _IWL_NVM_SDP@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IWL_NVM_SDP@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
Lloh29:
	adrp	x11, _NVM_SECTION_TYPE_REGULATORY_SDP@GOTPAGE
Lloh30:
	ldr	x11, [x11, _NVM_SECTION_TYPE_REGULATORY_SDP@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
Lloh32:
	adrp	x12, _NVM_SECTION_TYPE_REGULATORY@GOTPAGE
Lloh33:
	ldr	x12, [x12, _NVM_SECTION_TYPE_REGULATORY@GOTPAGEOFF]
Lloh34:
	ldr	x12, [x12]
LBB0_10:
Lloh35:
	adrp	x13, _NVM_SECTION_TYPE_CALIBRATION@GOTPAGE
Lloh36:
	ldr	x13, [x13, _NVM_SECTION_TYPE_CALIBRATION@GOTPAGEOFF]
Lloh37:
	ldr	x13, [x13]
	ldr	x23, [x8, x13, lsl #3]
Lloh38:
	adrp	x13, _NVM_SECTION_TYPE_MAC_OVERRIDE@GOTPAGE
Lloh39:
	ldr	x13, [x13, _NVM_SECTION_TYPE_MAC_OVERRIDE@GOTPAGEOFF]
Lloh40:
	ldr	x13, [x13]
	ldr	x24, [x8, x13, lsl #3]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	x25, [x8, x9, lsl #3]
Lloh41:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh42:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.11:
	mov	w8, #0
	b	LBB0_16
LBB0_12:
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_IWL_ERR
	mov	x0, #0
	b	LBB0_17
LBB0_15:
	ldr	x8, [x19]
	add	x0, x8, #8
Lloh48:
	adrp	x8, _IWL_UCODE_TLV_CAPA_LAR_SUPPORT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_LAR_SUPPORT@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cmp	x0, #0
	cset	w8, ne
	ldp	x1, x0, [x19, #8]
LBB0_16:
	ldr	x9, [x19]
	ldp	w9, w10, [x9]
	stp	w9, w8, [sp, #4]
	str	w10, [sp]
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	mov	x5, x25
	mov	x6, x24
	mov	x7, x22
	bl	_iwl_parse_nvm_data
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_NVM_EXT,8,3                ; @IWL_NVM_EXT
	.comm	_NVM_SECTION_TYPE_SW,8,3        ; @NVM_SECTION_TYPE_SW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't parse empty OTP/NVM sections\n"

	.comm	_IWL_NVM_SDP,8,3                ; @IWL_NVM_SDP
	.comm	_NVM_SECTION_TYPE_REGULATORY_SDP,8,3 ; @NVM_SECTION_TYPE_REGULATORY_SDP
	.comm	_NVM_SECTION_TYPE_REGULATORY,8,3 ; @NVM_SECTION_TYPE_REGULATORY
l_.str.1:                               ; @.str.1
	.asciz	"Can't parse empty family 8000 OTP/NVM sections\n"

	.comm	_NVM_SECTION_TYPE_MAC_OVERRIDE,8,3 ; @NVM_SECTION_TYPE_MAC_OVERRIDE
l_.str.2:                               ; @.str.2
	.asciz	"Can't parse mac_address, empty sections\n"

	.comm	_NVM_SECTION_TYPE_PHY_SKU,8,3   ; @NVM_SECTION_TYPE_PHY_SKU
l_.str.3:                               ; @.str.3
	.asciz	"Can't parse phy_sku in B0, empty sections\n"

	.comm	_NVM_SECTION_TYPE_CALIBRATION,8,3 ; @NVM_SECTION_TYPE_CALIBRATION
	.comm	_iwlwifi_mod_params,4,2         ; @iwlwifi_mod_params
	.comm	_IWL_UCODE_TLV_CAPA_LAR_SUPPORT,4,2 ; @IWL_UCODE_TLV_CAPA_LAR_SUPPORT
	.no_dead_strip	_iwl_parse_nvm_sections
.subsections_via_symbols
