	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_init_fw_regd           ## -- Begin function iwl_mvm_init_fw_regd
	.p2align	4, 0x90
_iwl_mvm_init_fw_regd:                  ## @iwl_mvm_init_fw_regd
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_wifi_mcc_supported
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_get_current_regdomain
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_kfree
LBB0_6:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	leaq	-36(%rbp), %rcx
	movl	%r15d, %edx
	callq	_iwl_mvm_get_regdomain
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	cmpl	$0, -36(%rbp)
	je	LBB0_9
## %bb.10:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_regulatory_set_wiphy_regd_sync_rtnl
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_init_fw_regd           ; -- Begin function iwl_mvm_init_fw_regd
	.p2align	2
_iwl_mvm_init_fw_regd:                  ; @iwl_mvm_init_fw_regd
	.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, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_rtnl_dereference
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w20, [x19]
	mov	x0, x19
	bl	_iwl_mvm_is_wifi_mcc_supported
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_iwl_mvm_get_current_regdomain
	mov	x22, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_kfree
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w1, [x21]
	add	x3, sp, #12
	mov	x2, x20
	bl	_iwl_mvm_get_regdomain
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_8:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	x1, x20
	bl	_regulatory_set_wiphy_regd_sync_rtnl
	mov	x19, x0
	b	LBB0_11
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x20
	bl	_kfree
LBB0_12:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
