	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_set_power_on
_wl12xx_set_power_on:                   ## @wl12xx_set_power_on
	.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	%rdi, %r14
	movq	_WL1271_PRE_POWER_ON_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_wl1271_power_on
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_WL1271_POWER_ON_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_wl1271_io_reset
	movq	%r14, %rdi
	callq	_wl1271_io_init
	movq	_PART_BOOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	%r14, %rdi
	callq	_wlcore_set_partition
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_wlcore_fw_wakeup
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_wl1271_power_off
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_PRE_POWER_ON_SLEEP,4,2  ## @WL1271_PRE_POWER_ON_SLEEP
	.comm	_WL1271_POWER_ON_SLEEP,4,2      ## @WL1271_POWER_ON_SLEEP
	.comm	_PART_BOOT,8,3                  ## @PART_BOOT
	.no_dead_strip	_wl12xx_set_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_set_power_on
_wl12xx_set_power_on:                   ; @wl12xx_set_power_on
	.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
Lloh0:
	adrp	x8, _WL1271_PRE_POWER_ON_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL1271_PRE_POWER_ON_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msleep
	mov	x0, x19
	bl	_wl1271_power_on
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _WL1271_POWER_ON_SLEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WL1271_POWER_ON_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msleep
	mov	x0, x19
	bl	_wl1271_io_reset
	mov	x0, x19
	bl	_wl1271_io_init
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PART_BOOT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PART_BOOT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	bl	_wlcore_set_partition
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_wlcore_fw_wakeup
	mov	x20, x0
	tbz	w0, #31, LBB0_6
	b	LBB0_5
LBB0_3:
	mov	x20, x0
	b	LBB0_6
LBB0_4:
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_wl1271_power_off
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_PRE_POWER_ON_SLEEP,4,2  ; @WL1271_PRE_POWER_ON_SLEEP
	.comm	_WL1271_POWER_ON_SLEEP,4,2      ; @WL1271_POWER_ON_SLEEP
	.comm	_PART_BOOT,8,3                  ; @PART_BOOT
	.no_dead_strip	_wl12xx_set_power_on
.subsections_via_symbols
