	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt2025c_wait_heartbeat
_qt2025c_wait_heartbeat:                ## @qt2025c_wait_heartbeat
	.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_HEARTB_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	(%rcx), %rbx
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCS_FW_HEARTBEAT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ef4_mdio_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	movq	_PCS_FW_HEARTB_LBN@GOTPCREL(%rip), %r15
	movq	_PCS_FW_HEARTB_WIDTH@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %ecx
	shrl	%cl, %eax
	movzbl	(%r13), %ecx
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %edx
	je	LBB0_4
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %r12d
LBB0_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.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_QT2025C_HEARTB_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCS_FW_HEARTBEAT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ef4_mdio_read
	testl	%eax, %eax
	jns	LBB0_2
	jmp	LBB0_9
LBB0_5:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	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_HEARTB_TIME,8,3    ## @QT2025C_MAX_HEARTB_TIME
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_PCS_FW_HEARTBEAT_REG,4,2       ## @PCS_FW_HEARTBEAT_REG
	.comm	_PCS_FW_HEARTB_LBN,4,2          ## @PCS_FW_HEARTB_LBN
	.comm	_PCS_FW_HEARTB_WIDTH,4,2        ## @PCS_FW_HEARTB_WIDTH
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"If an SFP+ direct attach cable is connected, please check that it complies with the SFP+ specification\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_QT2025C_HEARTB_WAIT,4,2        ## @QT2025C_HEARTB_WAIT
	.no_dead_strip	_qt2025c_wait_heartbeat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt2025c_wait_heartbeat
_qt2025c_wait_heartbeat:                ; @qt2025c_wait_heartbeat
	.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_HEARTB_TIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QT2025C_MAX_HEARTB_TIME@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x8]
Lloh5:
	adrp	x22, _MDIO_MMD_PCS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MDIO_MMD_PCS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _PCS_FW_HEARTBEAT_REG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PCS_FW_HEARTBEAT_REG@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_ef4_mdio_read
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	w24, #0
Lloh9:
	adrp	x25, _PCS_FW_HEARTB_LBN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _PCS_FW_HEARTB_LBN@GOTPAGEOFF]
	add	x20, x26, x20
Lloh11:
	adrp	x26, _PCS_FW_HEARTB_WIDTH@GOTPAGE
Lloh12:
	ldr	x26, [x26, _PCS_FW_HEARTB_WIDTH@GOTPAGEOFF]
	mov	w27, #-1
Lloh13:
	adrp	x28, _QT2025C_HEARTB_WAIT@GOTPAGE
Lloh14:
	ldr	x28, [x28, _QT2025C_HEARTB_WAIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	lsr	w8, w0, w8
	ldr	w9, [x26]
	lsl	w9, w27, w9
	bic	w8, w8, w9
	cbz	w24, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, w24
	b.eq	LBB0_5
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_7
; %bb.6:                                ;   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_9
LBB0_7:
Lloh15:
	adrp	x8, _hw@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh20:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_QT2025C_MAX_HEARTB_TIME,8,3    ; @QT2025C_MAX_HEARTB_TIME
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_PCS_FW_HEARTBEAT_REG,4,2       ; @PCS_FW_HEARTBEAT_REG
	.comm	_PCS_FW_HEARTB_LBN,4,2          ; @PCS_FW_HEARTB_LBN
	.comm	_PCS_FW_HEARTB_WIDTH,4,2        ; @PCS_FW_HEARTB_WIDTH
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"If an SFP+ direct attach cable is connected, please check that it complies with the SFP+ specification\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_QT2025C_HEARTB_WAIT,4,2        ; @QT2025C_HEARTB_WAIT
	.no_dead_strip	_qt2025c_wait_heartbeat
.subsections_via_symbols
