	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_init_mcc               ## -- Begin function iwl_mvm_init_mcc
	.p2align	4, 0x90
_iwl_mvm_init_mcc:                      ## @iwl_mvm_init_mcc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %rax
	movq	(%rax), %rax
	movq	_IWL_NVM_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	32(%r14), %rdi
	movq	_IWL_UCODE_TLV_CAPA_LAR_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movq	24(%r14), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	je	LBB0_3
## %bb.2:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rax, %rdx
	testl	%esi, %esi
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_INFO
LBB0_3:
	movq	%r14, %rdi
	callq	_iwl_mvm_is_lar_supported
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_iwl_mvm_init_fw_regd
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_12
## %bb.6:
	movl	$0, (%r14)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_get_current_regdomain
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_iwl_mvm_is_wifi_mcc_supported
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	16(%r14), %edi
	leaq	-27(%rbp), %rsi
	callq	_iwl_acpi_get_mcc
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_kfree
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_MCC_SOURCE_BIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-27(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_iwl_mvm_get_regdomain
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_7
LBB0_11:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_regulatory_set_wiphy_regd_sync_rtnl
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_NVM_EXT,8,3                ## @IWL_NVM_EXT
	.comm	_IWL_UCODE_TLV_CAPA_LAR_SUPPORT,4,2 ## @IWL_UCODE_TLV_CAPA_LAR_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Conflict between TLV & NVM regarding enabling LAR (TLV = %s NVM =%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MCC_SOURCE_BIOS,4,2            ## @MCC_SOURCE_BIOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_init_mcc               ; -- Begin function iwl_mvm_init_mcc
	.p2align	2
_iwl_mvm_init_mcc:                      ; @iwl_mvm_init_mcc
	.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	x19, x0
	ldr	x8, [x0, #40]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IWL_NVM_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_NVM_EXT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x19, #32]
Lloh3:
	adrp	x8, _IWL_UCODE_TLV_CAPA_LAR_SUPPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_LAR_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fw_has_capa
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x2, x10, x9, eq
	cmp	w8, #0
	csel	x3, x10, x9, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_INFO
LBB0_3:
	mov	x0, x19
	bl	_iwl_mvm_is_lar_supported
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_iwl_mvm_init_fw_regd
	mov	x21, x0
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
; %bb.5:
	str	wzr, [x19]
	mov	x0, x19
	mov	x1, #0
	bl	_iwl_mvm_get_current_regdomain
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_7:
	mov	w21, #0
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_iwl_mvm_is_wifi_mcc_supported
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [x19, #16]
	add	x1, sp, #13
	bl	_iwl_acpi_get_mcc
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MCC_SOURCE_BIOS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCC_SOURCE_BIOS@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x1, sp, #13
	mov	x3, #0
	bl	_iwl_mvm_get_regdomain
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_6
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_regulatory_set_wiphy_regd_sync_rtnl
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_NVM_EXT,8,3                ; @IWL_NVM_EXT
	.comm	_IWL_UCODE_TLV_CAPA_LAR_SUPPORT,4,2 ; @IWL_UCODE_TLV_CAPA_LAR_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Conflict between TLV & NVM regarding enabling LAR (TLV = %s NVM =%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MCC_SOURCE_BIOS,4,2            ; @MCC_SOURCE_BIOS
.subsections_via_symbols
