	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_regd_update
_ath10k_regd_update:                    ## @ath10k_regd_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_ath10k_update_channel_list
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
LBB0_2:
	movq	8(%rbx), %r14
	movq	_CONFIG_ATH10K_DFS_CERTIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rax), %edi
	callq	_ath10k_mac_get_dfs_region
	jmp	LBB0_6
LBB0_5:
	movq	_WMI_UNINIT_DFS_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movl	8(%r14), %ecx
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_ath10k_wmi_pdev_set_regdomain
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to update channel list: %d\n"

	.comm	_CONFIG_ATH10K_DFS_CERTIFIED,4,2 ## @CONFIG_ATH10K_DFS_CERTIFIED
	.comm	_WMI_UNINIT_DFS_DOMAIN,4,2      ## @WMI_UNINIT_DFS_DOMAIN
L_.str.1:                               ## @.str.1
	.asciz	"failed to set pdev regdomain: %d\n"

	.no_dead_strip	_ath10k_regd_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_regd_update
_ath10k_regd_update:                    ; @ath10k_regd_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #16
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_ath10k_update_channel_list
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_2:
	ldr	x20, [x19, #8]
Lloh2:
	adrp	x8, _CONFIG_ATH10K_DFS_CERTIFIED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_ATH10K_DFS_CERTIFIED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x8]
	bl	_ath10k_mac_get_dfs_region
	mov	x6, x0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _WMI_UNINIT_DFS_DOMAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_UNINIT_DFS_DOMAIN@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
LBB0_6:
	ldp	w4, w1, [x20, #4]
	ldr	w5, [x20]
	mov	x0, x19
	mov	x2, x1
	mov	x3, x1
	bl	_ath10k_wmi_pdev_set_regdomain
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath10k_warn
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to update channel list: %d\n"

	.comm	_CONFIG_ATH10K_DFS_CERTIFIED,4,2 ; @CONFIG_ATH10K_DFS_CERTIFIED
	.comm	_WMI_UNINIT_DFS_DOMAIN,4,2      ; @WMI_UNINIT_DFS_DOMAIN
l_.str.1:                               ; @.str.1
	.asciz	"failed to set pdev regdomain: %d\n"

	.no_dead_strip	_ath10k_regd_update
.subsections_via_symbols
