	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_regdomain_config        ## -- Begin function wlcore_regdomain_config
	.p2align	4, 0x90
_wlcore_regdomain_config:               ## @wlcore_regdomain_config
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_WLCORE_QUIRK_REGDOMAIN_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	20(%rbx), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_wlcore_cmd_regdomain_config_locked
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	20(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	20(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_wl12xx_queue_recovery_work
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_QUIRK_REGDOMAIN_CONF,4,2 ## @WLCORE_QUIRK_REGDOMAIN_CONF
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_regdomain_config        ; -- Begin function wlcore_regdomain_config
	.p2align	2
_wlcore_regdomain_config:               ; @wlcore_regdomain_config
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WLCORE_QUIRK_REGDOMAIN_CONF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLCORE_QUIRK_REGDOMAIN_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x20, #20]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_2
; %bb.5:
	mov	x0, x20
	bl	_wlcore_cmd_regdomain_config_locked
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	w0, [x20, #20]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #20]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_2
LBB0_7:
	mov	x0, x20
	bl	_wl12xx_queue_recovery_work
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_QUIRK_REGDOMAIN_CONF,4,2 ; @WLCORE_QUIRK_REGDOMAIN_CONF
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
.subsections_via_symbols
