	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_plt_start               ## -- Begin function wl1271_plt_start
	.p2align	4, 0x90
_wl1271_plt_start:                      ## @wl1271_plt_start
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_WL1271_BOOT_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	40(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wl1271_notice
	movq	(%r15), %rsi
	movq	_WLCORE_STATE_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$1, 8(%r15)
	movl	%r12d, 12(%r15)
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.4:
	movq	_PLT_CHIP_AWAKE@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r13d
	movq	%r15, %rdi
	callq	_wl1271_power_off
	testl	%r13d, %r13d
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_wl12xx_chip_wakeup
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, (%r14)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, (%r15)
	movl	%r12d, %eax
	leaq	_reltable.wl1271_plt_start(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movl	20(%r15), %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_wl1271_notice
	movl	24(%r15), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	(%rcx), %edi
	movl	20(%r15), %esi
	movl	$4, %edx
	callq	_strncpy
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wl1271_error
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
                                        ## implicit-def: $ebx
LBB0_10:
	movl	$0, 8(%r15)
	movq	_PLT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_WL1271_BOOT_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_wl1271_error
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_BOOT_RETRIES,4,2        ## @WL1271_BOOT_RETRIES
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.wl1271_plt_start
_reltable.wl1271_plt_start:
	.long	L_.str-_reltable.wl1271_plt_start
	.long	L_.str.1-_reltable.wl1271_plt_start
	.long	L_.str.2-_reltable.wl1271_plt_start
	.long	L_.str.3-_reltable.wl1271_plt_start

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLT_OFF"

L_.str.1:                               ## @.str.1
	.asciz	"PLT_ON"

L_.str.2:                               ## @.str.2
	.asciz	"PLT_FEM_DETECT"

L_.str.3:                               ## @.str.3
	.asciz	"PLT_CHIP_AWAKE"

L_.str.4:                               ## @.str.4
	.asciz	"power up"

	.comm	_WLCORE_STATE_OFF,8,3           ## @WLCORE_STATE_OFF
L_.str.5:                               ## @.str.5
	.asciz	"cannot go into PLT state because not in off state: %d"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PLT_CHIP_AWAKE,4,2             ## @PLT_CHIP_AWAKE
	.comm	_WLCORE_STATE_ON,4,2            ## @WLCORE_STATE_ON
L_.str.6:                               ## @.str.6
	.asciz	"firmware booted in PLT mode %s (%s)"

	.comm	_PLT_OFF,4,2                    ## @PLT_OFF
L_.str.7:                               ## @.str.7
	.asciz	"firmware boot in PLT mode failed despite %d retries"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_plt_start               ; -- Begin function wl1271_plt_start
	.p2align	2
_wl1271_plt_start:                      ; @wl1271_plt_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _WL1271_BOOT_RETRIES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WL1271_BOOT_RETRIES@GOTPAGEOFF]
	ldr	w25, [x24]
	ldr	x8, [x0, #40]
	ldr	x23, [x8]
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_wl1271_notice
	ldr	x1, [x20]
Lloh4:
	adrp	x8, _WLCORE_STATE_OFF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WLCORE_STATE_OFF@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_8
; %bb.1:
	mov	w8, #1
	stp	w8, w22, [x20, #8]
	cbz	w25, LBB0_9
; %bb.2:
Lloh7:
	adrp	x26, _PLT_CHIP_AWAKE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PLT_CHIP_AWAKE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w25, w25, #1
	mov	x0, x20
	bl	_wl1271_power_off
	cbz	w25, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_wl12xx_chip_wakeup
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmp	w8, w22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
LBB0_7:
Lloh9:
	adrp	x8, _WLCORE_STATE_ON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	str	x8, [x20]
Lloh12:
	adrp	x8, _wl1271_plt_start.PLT_MODE@PAGE
Lloh13:
	add	x8, x8, _wl1271_plt_start.PLT_MODE@PAGEOFF
	ldr	x8, [x8, w22, uxtw #3]
	ldr	w9, [x20, #20]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_wl1271_notice
	ldp	w1, w8, [x20, #20]
	str	w8, [x23, #4]
	ldr	w0, [x23]
	mov	w2, #4
	bl	_strncpy
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wl1271_error
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_9:
                                        ; implicit-def: $w21
LBB0_10:
Lloh21:
	adrp	x8, _PLT_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PLT_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	wzr, w8, [x20, #8]
	ldr	w1, [x24]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_wl1271_error
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_BOOT_RETRIES,4,2        ; @WL1271_BOOT_RETRIES
	.section	__DATA,__const
	.p2align	3                               ; @wl1271_plt_start.PLT_MODE
_wl1271_plt_start.PLT_MODE:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLT_OFF"

l_.str.1:                               ; @.str.1
	.asciz	"PLT_ON"

l_.str.2:                               ; @.str.2
	.asciz	"PLT_FEM_DETECT"

l_.str.3:                               ; @.str.3
	.asciz	"PLT_CHIP_AWAKE"

l_.str.4:                               ; @.str.4
	.asciz	"power up"

	.comm	_WLCORE_STATE_OFF,8,3           ; @WLCORE_STATE_OFF
l_.str.5:                               ; @.str.5
	.asciz	"cannot go into PLT state because not in off state: %d"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PLT_CHIP_AWAKE,4,2             ; @PLT_CHIP_AWAKE
	.comm	_WLCORE_STATE_ON,4,2            ; @WLCORE_STATE_ON
l_.str.6:                               ; @.str.6
	.asciz	"firmware booted in PLT mode %s (%s)"

	.comm	_PLT_OFF,4,2                    ; @PLT_OFF
l_.str.7:                               ; @.str.7
	.asciz	"firmware boot in PLT mode failed despite %d retries"

.subsections_via_symbols
