	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt2025c_wait_fw_status_good
_qt2025c_wait_fw_status_good:           ## @qt2025c_wait_fw_status_good
	.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	_jiffies@GOTPCREL(%rip), %rcx
	movq	_QT2025C_MAX_FWSTART_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	(%rcx), %rbx
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCS_UC8051_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ef4_mdio_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_PCS_UC_STATUS_WIDTH@GOTPCREL(%rip), %r15
	movq	_PCS_UC_STATUS_LBN@GOTPCREL(%rip), %r12
	movq	_PCS_UC_STATUS_FW_SAVE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %ecx
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movzbl	(%r12), %ecx
	shll	%cl, %edx
	andl	%eax, %edx
	cmpl	(%r13), %edx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_QT2025C_FWSTART_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCS_UC8051_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ef4_mdio_read
	testl	%eax, %eax
	jns	LBB0_2
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_QT2025C_MAX_FWSTART_TIME,8,3   ## @QT2025C_MAX_FWSTART_TIME
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_PCS_UC8051_STATUS_REG,4,2      ## @PCS_UC8051_STATUS_REG
	.comm	_PCS_UC_STATUS_WIDTH,4,2        ## @PCS_UC_STATUS_WIDTH
	.comm	_PCS_UC_STATUS_LBN,4,2          ## @PCS_UC_STATUS_LBN
	.comm	_PCS_UC_STATUS_FW_SAVE,4,2      ## @PCS_UC_STATUS_FW_SAVE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_QT2025C_FWSTART_WAIT,4,2       ## @QT2025C_FWSTART_WAIT
	.no_dead_strip	_qt2025c_wait_fw_status_good
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt2025c_wait_fw_status_good
_qt2025c_wait_fw_status_good:           ; @qt2025c_wait_fw_status_good
	.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	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh2:
	adrp	x8, _QT2025C_MAX_FWSTART_TIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QT2025C_MAX_FWSTART_TIME@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
Lloh5:
	adrp	x22, _MDIO_MMD_PCS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MDIO_MMD_PCS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _PCS_UC8051_STATUS_REG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PCS_UC8051_STATUS_REG@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_ef4_mdio_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	add	x20, x24, x20
Lloh9:
	adrp	x24, _PCS_UC_STATUS_WIDTH@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PCS_UC_STATUS_WIDTH@GOTPAGEOFF]
	mov	w25, #-1
Lloh11:
	adrp	x26, _PCS_UC_STATUS_LBN@GOTPAGE
Lloh12:
	ldr	x26, [x26, _PCS_UC_STATUS_LBN@GOTPAGEOFF]
Lloh13:
	adrp	x27, _PCS_UC_STATUS_FW_SAVE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _PCS_UC_STATUS_FW_SAVE@GOTPAGEOFF]
Lloh15:
	adrp	x28, _QT2025C_FWSTART_WAIT@GOTPAGE
Lloh16:
	ldr	x28, [x28, _QT2025C_FWSTART_WAIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	lsl	w8, w25, w8
	mvn	w8, w8
	ldr	w9, [x26]
	lsl	w8, w8, w9
	and	w8, w8, w0
	ldr	w9, [x27]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
	bl	_msleep
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ef4_mdio_read
	tbz	w0, #31, LBB0_2
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_QT2025C_MAX_FWSTART_TIME,8,3   ; @QT2025C_MAX_FWSTART_TIME
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_PCS_UC8051_STATUS_REG,4,2      ; @PCS_UC8051_STATUS_REG
	.comm	_PCS_UC_STATUS_WIDTH,4,2        ; @PCS_UC_STATUS_WIDTH
	.comm	_PCS_UC_STATUS_LBN,4,2          ; @PCS_UC_STATUS_LBN
	.comm	_PCS_UC_STATUS_FW_SAVE,4,2      ; @PCS_UC_STATUS_FW_SAVE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_QT2025C_FWSTART_WAIT,4,2       ; @QT2025C_FWSTART_WAIT
	.no_dead_strip	_qt2025c_wait_fw_status_good
.subsections_via_symbols
