	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_boot_soft_reset         ## -- Begin function wl1251_boot_soft_reset
	.p2align	4, 0x90
_wl1251_boot_soft_reset:                ## @wl1251_boot_soft_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ACX_REG_SLV_SOFT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ACX_SLV_SOFT_RESET_BIT@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_wl1251_reg_write32
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SOFT_RESET_MAX_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usecs_to_jiffies
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_wl1251_reg_read32
	movl	%eax, %r15d
	movq	_DEBUG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_wl1251_debug
	testl	%r15d, (%r13)
	je	LBB0_5
## %bb.1:
	addq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	_SOFT_RESET_STALL_TIME@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	callq	_udelay
	movq	_ACX_REG_SLV_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wl1251_reg_read32
	movl	%eax, %ebx
	movq	_DEBUG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_wl1251_debug
	movq	_ACX_SLV_SOFT_RESET_BIT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_2
LBB0_5:
	movq	_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wl1251_reg_write32
	movq	_SPARE_A2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wl1251_reg_write32
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1251_error
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACX_REG_SLV_SOFT_RESET,4,2     ## @ACX_REG_SLV_SOFT_RESET
	.comm	_ACX_SLV_SOFT_RESET_BIT,4,2     ## @ACX_SLV_SOFT_RESET_BIT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SOFT_RESET_MAX_TIME,4,2        ## @SOFT_RESET_MAX_TIME
	.comm	_DEBUG_BOOT,4,2                 ## @DEBUG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soft reset bootdata 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"soft reset timeout"

	.comm	_SOFT_RESET_STALL_TIME,4,2      ## @SOFT_RESET_STALL_TIME
	.comm	_ENABLE,4,2                     ## @ENABLE
	.comm	_SPARE_A2,4,2                   ## @SPARE_A2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_boot_soft_reset         ; -- Begin function wl1251_boot_soft_reset
	.p2align	2
_wl1251_boot_soft_reset:                ; @wl1251_boot_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x23, _ACX_REG_SLV_SOFT_RESET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ACX_REG_SLV_SOFT_RESET@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _ACX_SLV_SOFT_RESET_BIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ACX_SLV_SOFT_RESET_BIT@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_wl1251_reg_write32
Lloh4:
	adrp	x25, _jiffies@GOTPAGE
Lloh5:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x22, [x25]
Lloh6:
	adrp	x8, _SOFT_RESET_MAX_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOFT_RESET_MAX_TIME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_usecs_to_jiffies
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wl1251_reg_read32
	mov	x21, x0
Lloh9:
	adrp	x26, _DEBUG_BOOT@GOTPAGE
Lloh10:
	ldr	x26, [x26, _DEBUG_BOOT@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wl1251_debug
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.1:
	add	x20, x20, x22
Lloh13:
	adrp	x27, _SOFT_RESET_STALL_TIME@GOTPAGE
Lloh14:
	ldr	x27, [x27, _SOFT_RESET_STALL_TIME@GOTPAGEOFF]
Lloh15:
	adrp	x21, l_.str@PAGE
Lloh16:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wl1251_reg_read32
	mov	x22, x0
	ldr	w0, [x26]
	mov	x1, x21
	mov	x2, x22
	bl	_wl1251_debug
	ldr	w8, [x24]
	tst	w8, w22
	b.ne	LBB0_2
LBB0_4:
Lloh17:
	adrp	x8, _ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wl1251_reg_write32
Lloh20:
	adrp	x8, _SPARE_A2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SPARE_A2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_wl1251_reg_write32
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1251_error
	mov	w0, #-1
LBB0_6:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ACX_REG_SLV_SOFT_RESET,4,2     ; @ACX_REG_SLV_SOFT_RESET
	.comm	_ACX_SLV_SOFT_RESET_BIT,4,2     ; @ACX_SLV_SOFT_RESET_BIT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SOFT_RESET_MAX_TIME,4,2        ; @SOFT_RESET_MAX_TIME
	.comm	_DEBUG_BOOT,4,2                 ; @DEBUG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soft reset bootdata 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"soft reset timeout"

	.comm	_SOFT_RESET_STALL_TIME,4,2      ; @SOFT_RESET_STALL_TIME
	.comm	_ENABLE,4,2                     ; @ENABLE
	.comm	_SPARE_A2,4,2                   ; @SPARE_A2
.subsections_via_symbols
