	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_handle_status_check
_tlan_handle_status_check:              ## @tlan_handle_status_check
	.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, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_TLAN_HI_IV_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	_TLAN_CH_PARM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_inl
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_netdev_info
	movq	_TLAN_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tlan_read_and_clear_stats
	movq	_TLAN_HC_AD_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TLAN_HOST_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_outl
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_schedule_work
	movq	%r15, %rdi
	callq	_netif_wake_queue
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_TLAN_DEBUG_GNRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_TLAN_DBG
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rdi
	movq	_TLAN_NET_STS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_tlan_dio_read8
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	movl	(%rbx), %esi
	movl	%r13d, %edx
	callq	_tlan_dio_write8
	movl	(%r12), %edi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_TLAN_DBG
LBB0_4:
	movq	_TLAN_NET_STS_MIRQ@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	testl	%r13d, (%rax)
	je	LBB0_14
## %bb.5:
	cmpq	$0, 8(%r14)
	jne	LBB0_14
## %bb.6:
	movq	_TLAN_TLPHY_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_tlan_mii_read_reg
	movq	_TLAN_TLPHY_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tlan_mii_read_reg
	movq	_TLAN_TS_POLOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %eax
	movq	_TLAN_TC_SWAPOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, -52(%rbp)
	je	LBB0_7
## %bb.9:
	testl	%eax, %ecx
	je	LBB0_12
## %bb.10:
	notl	%ecx
	andl	%eax, %ecx
	jmp	LBB0_11
LBB0_7:
	testl	%eax, %ecx
	jne	LBB0_12
## %bb.8:
	orl	%eax, %ecx
LBB0_11:
	movl	%ecx, -44(%rbp)
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tlan_mii_write_reg
LBB0_12:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_tlan_phy_print
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_HI_IV_MASK,4,2            ## @TLAN_HI_IV_MASK
	.comm	_TLAN_CH_PARM,8,3               ## @TLAN_CH_PARM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adaptor Error = 0x%x\n"

	.comm	_TLAN_RECORD,4,2                ## @TLAN_RECORD
	.comm	_TLAN_HC_AD_RST,4,2             ## @TLAN_HC_AD_RST
	.comm	_TLAN_HOST_CMD,8,3              ## @TLAN_HOST_CMD
	.comm	_TLAN_DEBUG_GNRL,4,2            ## @TLAN_DEBUG_GNRL
L_.str.1:                               ## @.str.1
	.asciz	"%s: Status Check\n"

	.comm	_TLAN_NET_STS,4,2               ## @TLAN_NET_STS
L_.str.2:                               ## @.str.2
	.asciz	"%s:    Net_Sts = %x\n"

	.comm	_TLAN_NET_STS_MIRQ,4,2          ## @TLAN_NET_STS_MIRQ
	.comm	_TLAN_TLPHY_STS,4,2             ## @TLAN_TLPHY_STS
	.comm	_TLAN_TLPHY_CTL,4,2             ## @TLAN_TLPHY_CTL
	.comm	_TLAN_TS_POLOK,4,2              ## @TLAN_TS_POLOK
	.comm	_TLAN_TC_SWAPOL,4,2             ## @TLAN_TC_SWAPOL
	.comm	_debug,8,3                      ## @debug
	.no_dead_strip	_tlan_handle_status_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_handle_status_check
_tlan_handle_status_check:              ; @tlan_handle_status_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _TLAN_HI_IV_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_HI_IV_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _TLAN_CH_PARM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLAN_CH_PARM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
Lloh8:
	adrp	x8, _TLAN_RECORD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TLAN_RECORD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tlan_read_and_clear_stats
Lloh11:
	adrp	x8, _TLAN_HC_AD_RST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TLAN_HC_AD_RST@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _TLAN_HOST_CMD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TLAN_HOST_CMD@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
	add	x0, x20, #16
	bl	_schedule_work
	mov	x0, x19
	bl	_netif_wake_queue
	mov	w0, #0
	b	LBB0_15
LBB0_2:
Lloh17:
	adrp	x23, _TLAN_DEBUG_GNRL@GOTPAGE
Lloh18:
	ldr	x23, [x23, _TLAN_DEBUG_GNRL@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [x19]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_TLAN_DBG
	ldp	x8, x9, [x20]
	ldr	w21, [x8, x9, lsl #2]
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x24, _TLAN_NET_STS@GOTPAGE
Lloh22:
	ldr	x24, [x24, _TLAN_NET_STS@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_tlan_dio_read8
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	mov	x2, x22
	bl	_tlan_dio_write8
	ldr	w0, [x23]
	ldr	w2, [x19]
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_TLAN_DBG
LBB0_4:
Lloh25:
	adrp	x8, _TLAN_NET_STS_MIRQ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TLAN_NET_STS_MIRQ@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.5:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_14
; %bb.6:
Lloh28:
	adrp	x8, _TLAN_TLPHY_STS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TLAN_TLPHY_STS@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
Lloh31:
	adrp	x20, _TLAN_TLPHY_CTL@GOTPAGE
Lloh32:
	ldr	x20, [x20, _TLAN_TLPHY_CTL@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
Lloh33:
	adrp	x8, _TLAN_TS_POLOK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TLAN_TS_POLOK@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x8]
	ldp	w11, w8, [sp, #8]
Lloh36:
	adrp	x9, _TLAN_TC_SWAPOL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _TLAN_TC_SWAPOL@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w10, w9, w8
	tst	w12, w11
	b.eq	LBB0_9
; %bb.7:
	cbz	w10, LBB0_12
; %bb.8:
	bic	w3, w8, w9
	b	LBB0_11
LBB0_9:
	cbnz	w10, LBB0_12
; %bb.10:
	orr	w3, w9, w8
LBB0_11:
	str	w3, [sp, #12]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_write_reg
LBB0_12:
Lloh39:
	adrp	x8, _debug@GOTPAGE
Lloh40:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_tlan_phy_print
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_HI_IV_MASK,4,2            ; @TLAN_HI_IV_MASK
	.comm	_TLAN_CH_PARM,8,3               ; @TLAN_CH_PARM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adaptor Error = 0x%x\n"

	.comm	_TLAN_RECORD,4,2                ; @TLAN_RECORD
	.comm	_TLAN_HC_AD_RST,4,2             ; @TLAN_HC_AD_RST
	.comm	_TLAN_HOST_CMD,8,3              ; @TLAN_HOST_CMD
	.comm	_TLAN_DEBUG_GNRL,4,2            ; @TLAN_DEBUG_GNRL
l_.str.1:                               ; @.str.1
	.asciz	"%s: Status Check\n"

	.comm	_TLAN_NET_STS,4,2               ; @TLAN_NET_STS
l_.str.2:                               ; @.str.2
	.asciz	"%s:    Net_Sts = %x\n"

	.comm	_TLAN_NET_STS_MIRQ,4,2          ; @TLAN_NET_STS_MIRQ
	.comm	_TLAN_TLPHY_STS,4,2             ; @TLAN_TLPHY_STS
	.comm	_TLAN_TLPHY_CTL,4,2             ; @TLAN_TLPHY_CTL
	.comm	_TLAN_TS_POLOK,4,2              ; @TLAN_TS_POLOK
	.comm	_TLAN_TC_SWAPOL,4,2             ; @TLAN_TC_SWAPOL
	.comm	_debug,8,3                      ; @debug
	.no_dead_strip	_tlan_handle_status_check
.subsections_via_symbols
