	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_utils_soft_reset_flb
_hw_atl_utils_soft_reset_flb:           ## @hw_atl_utils_soft_reset_flb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$1028, %esi                     ## imm = 0x404
	movl	$16609, %edx                    ## imm = 0x40E1
	callq	_aq_hw_write_reg
	movl	$50, %edi
	callq	_AQ_HW_SLEEP
	movq	%r12, %rdi
	movl	$1340, %esi                     ## imm = 0x53C
	callq	_aq_hw_read_reg
	orl	$16, %eax
	movq	%r12, %rdi
	movl	$1340, %esi                     ## imm = 0x53C
	movl	%eax, %edx
	callq	_aq_hw_write_reg
	movq	_HW_ATL_GLB_SOFT_RES_ADR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_aq_hw_read_reg
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %esi
	andl	$16383, %eax                    ## imm = 0x3FFF
	leal	32768(%rax), %edx
	movq	%r12, %rdi
	callq	_aq_hw_write_reg
	movq	%r12, %rdi
	movl	$1028, %esi                     ## imm = 0x404
	movl	$32992, %edx                    ## imm = 0x80E0
	callq	_aq_hw_write_reg
	movq	%r12, %rdi
	movl	$12968, %esi                    ## imm = 0x32A8
	xorl	%edx, %edx
	callq	_aq_hw_write_reg
	movq	%r12, %rdi
	movl	$1312, %esi                     ## imm = 0x520
	movl	$1, %edx
	callq	_aq_hw_write_reg
	movq	%r12, %rdi
	movl	$1340, %esi                     ## imm = 0x53C
	callq	_aq_hw_read_reg
	movl	%eax, %r14d
	movl	%eax, %edx
	orl	$16, %edx
	movq	%r12, %rdi
	movl	$1340, %esi                     ## imm = 0x53C
	callq	_aq_hw_write_reg
	movl	$10, %edi
	callq	_AQ_HW_SLEEP
	andl	$-17, %r14d
	movq	%r12, %rdi
	movl	$1340, %esi                     ## imm = 0x53C
	movl	%r14d, %edx
	callq	_aq_hw_write_reg
	movq	%r12, %rdi
	movl	$1028, %esi                     ## imm = 0x404
	movl	$98528, %edx                    ## imm = 0x180E0
	callq	_aq_hw_write_reg
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_HW_ATL_MPI_DAISY_CHAIN_STATUS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_aq_hw_read_reg
	testb	$16, %al
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_AQ_HW_SLEEP
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	movl	$1028, %esi                     ## imm = 0x404
	movl	$32992, %edx                    ## imm = 0x80E0
	callq	_aq_hw_write_reg
	movl	$50, %edi
	callq	_AQ_HW_SLEEP
	movq	%r12, %rdi
	movl	$928, %esi                      ## imm = 0x3A0
	movl	$1, %edx
	callq	_aq_hw_write_reg
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_rx_rx_reg_res_dis_set
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tx_tx_reg_res_dis_set
	movq	_HW_ATL_MAC_PHY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_HW_ATL_MAC_PHY_MPI_RESET_BIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_BIT
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_aq_hw_write_reg_bit
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_aq_hw_read_reg
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %esi
	andl	$16383, %eax                    ## imm = 0x3FFF
	leal	32768(%rax), %edx
	movq	%r12, %rdi
	callq	_aq_hw_write_reg
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_HW_ATL_MPI_FW_VERSION@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_aq_hw_read_reg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$10, %edi
	callq	_AQ_HW_SLEEP
	decl	%ebx
	jne	LBB0_6
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_aq_pr_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	movl	$15, %edi
	callq	_AQ_HW_SLEEP
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_GLB_SOFT_RES_ADR,4,2    ## @HW_ATL_GLB_SOFT_RES_ADR
	.comm	_HW_ATL_MPI_DAISY_CHAIN_STATUS,4,2 ## @HW_ATL_MPI_DAISY_CHAIN_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC kickstart failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HW_ATL_MAC_PHY_CONTROL,4,2     ## @HW_ATL_MAC_PHY_CONTROL
	.comm	_HW_ATL_MAC_PHY_MPI_RESET_BIT,4,2 ## @HW_ATL_MAC_PHY_MPI_RESET_BIT
	.comm	_HW_ATL_MPI_FW_VERSION,4,2      ## @HW_ATL_MPI_FW_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"FW kickstart failed\n"

	.no_dead_strip	_hw_atl_utils_soft_reset_flb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_utils_soft_reset_flb
_hw_atl_utils_soft_reset_flb:           ; @hw_atl_utils_soft_reset_flb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w1, #1028
	mov	w2, #16609
	bl	_aq_hw_write_reg
	mov	w0, #50
	bl	_AQ_HW_SLEEP
	mov	x0, x19
	mov	w1, #1340
	bl	_aq_hw_read_reg
	orr	w2, w0, #0x10
	mov	x0, x19
	mov	w1, #1340
	bl	_aq_hw_write_reg
Lloh0:
	adrp	x21, _HW_ATL_GLB_SOFT_RES_ADR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HW_ATL_GLB_SOFT_RES_ADR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_aq_hw_read_reg
	ldr	w1, [x21]
	mov	w2, #32768
	bfxil	w2, w0, #0, #14
	mov	x0, x19
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #1028
	mov	w2, #32992
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #12968
	mov	w2, #0
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #1312
	mov	w2, #1
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #1340
	bl	_aq_hw_read_reg
	mov	x20, x0
	orr	w2, w0, #0x10
	mov	x0, x19
	mov	w1, #1340
	bl	_aq_hw_write_reg
	mov	w0, #10
	bl	_AQ_HW_SLEEP
	and	w2, w20, #0xffffffef
	mov	x0, x19
	mov	w1, #1340
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #1028
	mov	w2, #32992
	movk	w2, #1, lsl #16
	bl	_aq_hw_write_reg
	mov	w20, #1000
Lloh2:
	adrp	x22, _HW_ATL_MPI_DAISY_CHAIN_STATUS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HW_ATL_MPI_DAISY_CHAIN_STATUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_aq_hw_read_reg
	tbnz	w0, #4, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_AQ_HW_SLEEP
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	mov	w1, #1028
	mov	w2, #32992
	bl	_aq_hw_write_reg
	mov	w0, #50
	bl	_AQ_HW_SLEEP
	mov	x0, x19
	mov	w1, #928
	mov	w2, #1
	bl	_aq_hw_write_reg
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_rx_rx_reg_res_dis_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tx_tx_reg_res_dis_set
Lloh6:
	adrp	x8, _HW_ATL_MAC_PHY_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HW_ATL_MAC_PHY_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x22, _HW_ATL_MAC_PHY_MPI_RESET_BIT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _HW_ATL_MAC_PHY_MPI_RESET_BIT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	mov	x2, x0
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_aq_hw_write_reg_bit
	ldr	w1, [x21]
	mov	x0, x19
	bl	_aq_hw_read_reg
	ldr	w1, [x21]
	mov	w2, #32768
	bfxil	w2, w0, #0, #14
	mov	x0, x19
	bl	_aq_hw_write_reg
	mov	w20, #1000
Lloh11:
	adrp	x21, _HW_ATL_MPI_FW_VERSION@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HW_ATL_MPI_FW_VERSION@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_aq_hw_read_reg
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_AQ_HW_SLEEP
	subs	w20, w20, #1
	b.ne	LBB0_5
; %bb.7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_aq_pr_err
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #15
	bl	_AQ_HW_SLEEP
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_GLB_SOFT_RES_ADR,4,2    ; @HW_ATL_GLB_SOFT_RES_ADR
	.comm	_HW_ATL_MPI_DAISY_CHAIN_STATUS,4,2 ; @HW_ATL_MPI_DAISY_CHAIN_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC kickstart failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HW_ATL_MAC_PHY_CONTROL,4,2     ; @HW_ATL_MAC_PHY_CONTROL
	.comm	_HW_ATL_MAC_PHY_MPI_RESET_BIT,4,2 ; @HW_ATL_MAC_PHY_MPI_RESET_BIT
	.comm	_HW_ATL_MPI_FW_VERSION,4,2      ; @HW_ATL_MPI_FW_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"FW kickstart failed\n"

	.no_dead_strip	_hw_atl_utils_soft_reset_flb
.subsections_via_symbols
