	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_adjust_link
_stmmac_adjust_link:                    ## @stmmac_adjust_link
	.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
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	56(%rax), %r14
	testq	%r14, %r14
	je	LBB0_31
## %bb.1:
	movq	%rax, %rbx
	movq	(%r13), %r12
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %ecx
	movq	16(%r14), %r8
	leaq	L_.str(%rip), %rdx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_DBG
	movq	%rbx, %r15
	addq	$20, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 16(%r14)
	je	LBB0_25
## %bb.2:
	movq	_MAC_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	addq	%r12, %rdi
	callq	_readl
	movl	%eax, %r12d
	movl	(%r14), %esi
	cmpl	8(%rbx), %esi
	je	LBB0_4
## %bb.3:
	movq	40(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	orl	%r12d, %ecx
	notl	%eax
	andl	%r12d, %eax
	testl	%esi, %esi
	cmovnel	%ecx, %eax
	movl	%esi, 8(%rbx)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %r12d
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	40(%rbx), %rax
	movq	16(%rax), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	*(%rax)
LBB0_6:
	movl	4(%r14), %esi
	cmpl	12(%rbx), %esi
	jne	LBB0_8
## %bb.7:
	movq	_probe@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_MAC_CTRL_REG@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	cmpl	$0, 16(%rbx)
	movq	_probe@GOTPCREL(%rip), %r13
	movq	_DEBUG@GOTPCREL(%rip), %r12
	je	LBB0_30
## %bb.26:
	movl	$0, 16(%rbx)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, 8(%rbx)
	jmp	LBB0_28
LBB0_8:
	cmpl	$10, %esi
	je	LBB0_13
## %bb.9:
	cmpl	$100, %esi
	je	LBB0_13
## %bb.10:
	cmpl	$1000, %esi                     ## imm = 0x3E8
	jne	LBB0_19
## %bb.11:
	movl	48(%rbx), %edi
	callq	_likely
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:
	movq	40(%rbx), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	jmp	LBB0_21
LBB0_13:
	cmpl	$0, 48(%rbx)
	movq	40(%rbx), %rcx
	movl	(%rcx), %eax
	je	LBB0_17
## %bb.14:
	orl	%r12d, %eax
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	movl	4(%rcx), %r12d
	cmpl	(%rdx), %esi
	movq	_probe@GOTPCREL(%rip), %r13
	jne	LBB0_16
## %bb.15:
	orl	%eax, %r12d
	jmp	LBB0_18
LBB0_19:
	movq	%rbx, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	8(%r13), %esi
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warning
LBB0_21:
	movq	_probe@GOTPCREL(%rip), %r13
	jmp	LBB0_22
LBB0_17:
	notl	%eax
	andl	%eax, %r12d
	movq	_probe@GOTPCREL(%rip), %r13
	jmp	LBB0_18
LBB0_16:
	notl	%r12d
	andl	%eax, %r12d
LBB0_18:
	movl	24(%rbx), %edi
	callq	*32(%rbx)
LBB0_22:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_MAC_CTRL_REG@GOTPCREL(%rip), %rcx
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_23:
	addq	(%rcx), %rsi
	movl	%r12d, %edi
	callq	_writel
	cmpl	$0, 16(%rbx)
	je	LBB0_24
## %bb.27:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	_DEBUG@GOTPCREL(%rip), %r12
	jne	LBB0_28
	jmp	LBB0_30
LBB0_24:
	movl	$1, 16(%rbx)
	movq	_DEBUG@GOTPCREL(%rip), %r12
LBB0_28:
	movq	%rbx, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	callq	_phy_print_status
LBB0_30:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r13), %edi
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.comm	_DEBUG,4,2                      ## @DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stmmac_adjust_link: called.  address %d link %d\n"

	.comm	_MAC_CTRL_REG,8,3               ## @MAC_CTRL_REG
	.comm	_SPEED_100,4,2                  ## @SPEED_100
L_.str.1:                               ## @.str.1
	.asciz	"%s: Speed (%d) is not 10 or 100!\n"

L_.str.2:                               ## @.str.2
	.asciz	"stmmac_adjust_link: exiting\n"

	.no_dead_strip	_stmmac_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_adjust_link
_stmmac_adjust_link:                    ; @stmmac_adjust_link
	.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	x24, x0
	bl	_netdev_priv
	ldr	x19, [x0, #56]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x22, [x24]
	ldp	w25, w26, [x0]
Lloh0:
	adrp	x23, _probe@GOTPAGE
Lloh1:
	ldr	x23, [x23, _probe@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x28, _DEBUG@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DEBUG@GOTPAGEOFF]
	ldr	w1, [x28]
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #24]
	stp	x9, x8, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DBG
	add	x21, x20, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _MAC_CTRL_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_CTRL_REG@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_readl
	mov	x23, x0
	ldr	w1, [x19]
	ldr	w8, [x20, #8]
	cmp	w1, w8
	b.ne	LBB0_7
; %bb.3:
	mov	w27, #0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
	b	LBB0_9
LBB0_4:
	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_5:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_28
; %bb.6:
	str	wzr, [x20, #16]
	movi	d0, #0x000000ffffffff
	str	d0, [x20, #8]
	b	LBB0_26
LBB0_7:
	ldr	x8, [x20, #40]
	ldr	w8, [x8, #8]
	orr	w9, w8, w23
	bic	w8, w23, w8
	cmp	w1, #0
	csel	w23, w8, w9, eq
	str	w1, [x20, #8]
	mov	w27, #1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
LBB0_8:
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x2, x25
	mov	x3, x26
	blr	x8
LBB0_9:
	ldr	w1, [x19, #4]
	ldr	w8, [x20, #12]
	cmp	w1, w8
	b.ne	LBB0_11
; %bb.10:
Lloh9:
	adrp	x9, _MAC_CTRL_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAC_CTRL_REG@GOTPAGEOFF]
	b	LBB0_23
LBB0_11:
	cmp	w1, #10
	b.eq	LBB0_16
; %bb.12:
	cmp	w1, #100
	b.eq	LBB0_16
; %bb.13:
	cmp	w1, #1000
	b.ne	LBB0_18
; %bb.14:
	ldr	w0, [x20, #48]
	bl	_likely
	cbz	w0, LBB0_22
; %bb.15:
	ldr	x8, [x20, #40]
	ldr	w8, [x8]
	bic	w23, w23, w8
	b	LBB0_22
LBB0_16:
	ldr	w10, [x20, #48]
	ldr	x8, [x20, #40]
	ldr	w9, [x8]
	cbz	w10, LBB0_20
; %bb.17:
	orr	w9, w9, w23
Lloh11:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	w8, [x8, #4]
	bic	w11, w9, w8
	orr	w8, w8, w9
	cmp	w1, w10
	csel	w23, w11, w8, ne
	b	LBB0_21
LBB0_18:
	mov	x0, x20
	bl	_netif_msg_link
	cbz	x0, LBB0_22
; %bb.19:
	ldr	w1, [x24, #8]
	ldr	w2, [x19, #4]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warning
	b	LBB0_22
LBB0_20:
	bic	w23, w23, w9
LBB0_21:
	ldr	x8, [x20, #32]
	ldr	w0, [x20, #24]
	blr	x8
LBB0_22:
Lloh16:
	adrp	x9, _MAC_CTRL_REG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAC_CTRL_REG@GOTPAGEOFF]
	ldr	w8, [x19, #4]
	str	w8, [x20, #12]
	mov	w27, #1
LBB0_23:
	ldr	x8, [x9]
	add	x1, x8, x22
	mov	x0, x23
	bl	_writel
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_25
; %bb.24:
Lloh18:
	adrp	x23, _probe@GOTPAGE
Lloh19:
	ldr	x23, [x23, _probe@GOTPAGEOFF]
	cbnz	w27, LBB0_26
	b	LBB0_28
LBB0_25:
	mov	w8, #1
	str	w8, [x20, #16]
Lloh20:
	adrp	x23, _probe@GOTPAGE
Lloh21:
	ldr	x23, [x23, _probe@GOTPAGEOFF]
LBB0_26:
	mov	x0, x20
	bl	_netif_msg_link
	cbz	x0, LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_phy_print_status
LBB0_28:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x23]
	ldr	w1, [x28]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@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	_DBG
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.comm	_DEBUG,4,2                      ; @DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stmmac_adjust_link: called.  address %d link %d\n"

	.comm	_MAC_CTRL_REG,8,3               ; @MAC_CTRL_REG
	.comm	_SPEED_100,4,2                  ; @SPEED_100
l_.str.1:                               ; @.str.1
	.asciz	"%s: Speed (%d) is not 10 or 100!\n"

l_.str.2:                               ; @.str.2
	.asciz	"stmmac_adjust_link: exiting\n"

	.no_dead_strip	_stmmac_adjust_link
.subsections_via_symbols
