	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbmac_mii_poll
_sbmac_mii_poll:                        ## @sbmac_mii_poll
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r13
	movq	48(%rax), %rbx
	movq	(%rax), %rax
	movq	8(%r13), %r14
	movq	(%rbx), %rcx
	movq	8(%rbx), %r15
	movq	16(%r13), %rsi
	movq	16(%rbx), %r12
	movl	24(%rbx), %edx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.1:
	cmpq	%r15, %r14
	jne	LBB0_4
## %bb.2:
	cmpq	%r12, %rsi
	jne	LBB0_4
## %bb.3:
	cmpl	%edx, 24(%r13)
	jne	LBB0_4
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.7:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_12
## %bb.8:
	testl	%edx, %edx
	je	LBB0_11
## %bb.9:
	movq	_sbmac_fc_frame@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	cmpq	%rcx, %rax
	je	LBB0_21
## %bb.6:
	movq	$0, (%r13)
	movq	_sbmac_speed_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_sbmac_duplex_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movq	_sbmac_fc_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movl	$-1, 24(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
LBB0_12:
	movq	_sbmac_fc_collision@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$72, %ecx
	jmp	LBB0_13
LBB0_11:
	movq	_sbmac_fc_disabled@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$70, %ecx
LBB0_13:
	movl	28(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r13, %rdi
	addq	$40, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movups	8(%rbx), %xmm0
	movups	%xmm0, 8(%r13)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 28(%r13)
	movl	24(%rbx), %eax
	movl	%eax, 24(%r13)
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	cmpq	%r15, %r14
	jne	LBB0_16
## %bb.14:
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_16
## %bb.15:
	movl	%ecx, %eax
	cmpl	%ecx, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_20
LBB0_16:
	movq	32(%r13), %rax
	movq	_sbmac_state_off@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.17:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_19
## %bb.18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
LBB0_19:
	movq	%r13, %rdi
	callq	_sbmac_channel_stop
	movq	%r13, %rdi
	callq	_sbmac_channel_start
LBB0_20:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sbmac_speed_none,8,3           ## @sbmac_speed_none
	.comm	_sbmac_duplex_none,8,3          ## @sbmac_duplex_none
	.comm	_sbmac_fc_disabled,8,3          ## @sbmac_fc_disabled
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link unavailable\n"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_sbmac_fc_frame,4,2             ## @sbmac_fc_frame
	.comm	_sbmac_fc_collision,4,2         ## @sbmac_fc_collision
L_.str.1:                               ## @.str.1
	.asciz	"%s: link available: %dbase-%cD\n"

	.comm	_sbmac_state_off,8,3            ## @sbmac_state_off
	.comm	_debug,4,2                      ## @debug
L_.str.2:                               ## @.str.2
	.asciz	"%s: restarting channel because PHY state changed\n"

	.no_dead_strip	_sbmac_mii_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbmac_mii_poll
_sbmac_mii_poll:                        ; @sbmac_mii_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	bl	_netdev_priv
	ldr	x23, [x0, #48]
	ldp	x9, x25, [x0]
	ldp	x10, x26, [x23]
	ldr	x22, [x0, #16]
	ldr	x24, [x23, #16]
	ldr	w11, [x0, #24]
	ldr	w8, [x23, #24]
	cmp	x9, x10
	ccmp	x25, x26, #0, eq
	ccmp	x22, x24, #0, eq
	ccmp	w11, w8, #0, eq
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	cbz	x10, LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x24, x9
	b.ne	LBB0_8
; %bb.3:
	cbz	w8, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _sbmac_fc_frame@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sbmac_fc_frame@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _sbmac_speed_none@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sbmac_speed_none@GOTPAGEOFF]
	str	xzr, [x19]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _sbmac_duplex_none@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sbmac_duplex_none@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	stp	x8, x9, [x19, #8]
Lloh11:
	adrp	x8, _sbmac_fc_disabled@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sbmac_fc_disabled@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	w9, #-1
	stp	w9, w8, [x19, #24]
	ldr	w1, [x20]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pr_info
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
Lloh16:
	adrp	x8, _sbmac_fc_collision@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sbmac_fc_collision@GOTPAGEOFF]
Lloh18:
	ldr	w27, [x8]
	mov	w8, #72
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _sbmac_fc_disabled@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sbmac_fc_disabled@GOTPAGEOFF]
LBB0_10:
	ldr	w27, [x8]
	mov	w8, #70
LBB0_11:
	ldr	w28, [x19, #28]
	ldr	w1, [x20]
	stp	x26, x8, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	add	x21, x19, #40
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldur	q0, [x23, #8]
	stur	q0, [x19, #8]
	ldr	w8, [x23, #24]
	stp	w8, w27, [x19, #24]
	ldr	x8, [x23]
	str	x8, [x19]
	cmp	x25, x26
	b.ne	LBB0_14
; %bb.12:
	cmp	x22, x24
	b.ne	LBB0_14
; %bb.13:
	cmp	w28, w27
	b.eq	LBB0_18
LBB0_14:
	ldr	x8, [x19, #32]
Lloh23:
	adrp	x9, _sbmac_state_off@GOTPAGE
Lloh24:
	ldr	x9, [x9, _sbmac_state_off@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.15:
Lloh26:
	adrp	x8, _debug@GOTPAGE
Lloh27:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.16:
	ldr	w1, [x20]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_17:
	mov	x0, x19
	bl	_sbmac_channel_stop
	mov	x0, x19
	bl	_sbmac_channel_start
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_sbmac_speed_none,8,3           ; @sbmac_speed_none
	.comm	_sbmac_duplex_none,8,3          ; @sbmac_duplex_none
	.comm	_sbmac_fc_disabled,8,3          ; @sbmac_fc_disabled
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link unavailable\n"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_sbmac_fc_frame,4,2             ; @sbmac_fc_frame
	.comm	_sbmac_fc_collision,4,2         ; @sbmac_fc_collision
l_.str.1:                               ; @.str.1
	.asciz	"%s: link available: %dbase-%cD\n"

	.comm	_sbmac_state_off,8,3            ; @sbmac_state_off
	.comm	_debug,4,2                      ; @debug
l_.str.2:                               ; @.str.2
	.asciz	"%s: restarting channel because PHY state changed\n"

	.no_dead_strip	_sbmac_mii_poll
.subsections_via_symbols
