	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_init_ap_role
_wl12xx_init_ap_role:                   ## @wl12xx_init_ap_role
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_wl1271_acx_ap_max_tx_retry
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wl1271_acx_tx_power
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movq	_WLCORE_CFG_FEATURE_RADAR_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_wlcore_cmd_generic_cfg
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_CFG_FEATURE_RADAR_DEBUG,4,2 ## @WLCORE_CFG_FEATURE_RADAR_DEBUG
	.no_dead_strip	_wl12xx_init_ap_role
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_init_ap_role
_wl12xx_init_ap_role:                   ; @wl12xx_init_ap_role
	.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, x1
	mov	x20, x0
	bl	_wl1271_acx_ap_max_tx_retry
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_wl1271_acx_tx_power
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x3, [x20]
	cbz	x3, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _WLCORE_CFG_FEATURE_RADAR_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLCORE_CFG_FEATURE_RADAR_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_wlcore_cmd_generic_cfg
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_CFG_FEATURE_RADAR_DEBUG,4,2 ; @WLCORE_CFG_FEATURE_RADAR_DEBUG
	.no_dead_strip	_wl12xx_init_ap_role
.subsections_via_symbols
