	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_phy_adjust_link
_smsc911x_phy_adjust_link:              ## @smsc911x_phy_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
	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
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %r15
	movq	(%r14), %r13
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.1:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_TRACE
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc911x_mac_read
	movl	%eax, %r12d
	cmpq	$0, (%r13)
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_TRACE
	movq	_MAC_CR_FDPX_@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_TRACE
	movq	_MAC_CR_FDPX_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
LBB0_4:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_smsc911x_mac_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_smsc911x_phy_update_flowcontrol
	movq	(%r13), %rax
	movq	%rax, (%r15)
LBB0_5:
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	cmpl	8(%r15), %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %r14d
	movq	_hw@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_TRACE
	movl	(%rbx), %esi
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_TRACE
	movl	12(%r15), %edx
	movq	_GPIO_CFG_LED1_EN_@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_13
## %bb.8:
	cmpl	$0, 20(%r15)
	jne	LBB0_13
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_TRACE
	movq	_GPIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	movl	%eax, 16(%r15)
	movq	_GPIO_CFG_LED1_EN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_13
## %bb.10:
	cmpl	$0, 20(%r15)
	jne	LBB0_13
## %bb.11:
	movl	%eax, 12(%r15)
	notl	%edx
	andl	%eax, %edx
	movq	_GPIO_CFG_GPIOBUF0_@GOTPCREL(%rip), %rax
	movq	_GPIO_CFG_GPIODIR0_@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movq	_GPIO_CFG_GPIOD0_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_12:
	movl	%edx, 16(%r15)
	movq	_GPIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_write
LBB0_13:
	movl	%r14d, 8(%r15)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"duplex state has changed"

	.comm	_MAC_CR,4,2                     ## @MAC_CR
L_.str.1:                               ## @.str.1
	.asciz	"configuring for full duplex mode"

	.comm	_MAC_CR_FDPX_,4,2               ## @MAC_CR_FDPX_
L_.str.2:                               ## @.str.2
	.asciz	"configuring for half duplex mode"

L_.str.3:                               ## @.str.3
	.asciz	"carrier state has changed"

L_.str.4:                               ## @.str.4
	.asciz	"configuring for carrier OK"

	.comm	_GPIO_CFG_LED1_EN_,4,2          ## @GPIO_CFG_LED1_EN_
	.comm	_GPIO_CFG,4,2                   ## @GPIO_CFG
L_.str.5:                               ## @.str.5
	.asciz	"configuring for no carrier"

	.comm	_GPIO_CFG_GPIOBUF0_,4,2         ## @GPIO_CFG_GPIOBUF0_
	.comm	_GPIO_CFG_GPIODIR0_,4,2         ## @GPIO_CFG_GPIODIR0_
	.comm	_GPIO_CFG_GPIOD0_,4,2           ## @GPIO_CFG_GPIOD0_
	.no_dead_strip	_smsc911x_phy_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_phy_adjust_link
_smsc911x_phy_adjust_link:              ; @smsc911x_phy_adjust_link
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x24, [x20]
	ldr	x8, [x24]
	ldr	x9, [x0]
Lloh0:
	adrp	x23, _hw@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hw@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh4:
	adrp	x25, _MAC_CR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAC_CR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_smsc911x_mac_read
	mov	x22, x0
	ldr	x8, [x24]
	ldr	w1, [x23]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
Lloh8:
	adrp	x8, _MAC_CR_FDPX_@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_CR_FDPX_@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w8, w22
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
Lloh13:
	adrp	x8, _MAC_CR_FDPX_@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAC_CR_FDPX_@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w2, w22, w8
LBB0_4:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_smsc911x_mac_write
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_smsc911x_phy_update_flowcontrol
	ldr	x8, [x24]
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_netif_carrier_ok
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.6:
	mov	x20, x0
	ldr	w1, [x23]
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	ldr	w1, [x23]
	cbz	w20, LBB0_9
; %bb.7:
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	ldr	w2, [x19, #12]
Lloh20:
	adrp	x8, _GPIO_CFG_LED1_EN_@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GPIO_CFG_LED1_EN_@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_13
; %bb.8:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_13
	b	LBB0_12
LBB0_9:
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
Lloh25:
	adrp	x8, _GPIO_CFG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GPIO_CFG@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc911x_reg_read
	str	w0, [x19, #16]
Lloh28:
	adrp	x8, _GPIO_CFG_LED1_EN_@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GPIO_CFG_LED1_EN_@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.10:
	ldr	w9, [x19, #20]
	cbnz	w9, LBB0_13
; %bb.11:
	bic	w8, w0, w8
Lloh31:
	adrp	x9, _GPIO_CFG_GPIOBUF0_@GOTPAGE
Lloh32:
	ldr	x9, [x9, _GPIO_CFG_GPIOBUF0_@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _GPIO_CFG_GPIODIR0_@GOTPAGE
Lloh35:
	ldr	x10, [x10, _GPIO_CFG_GPIODIR0_@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
Lloh37:
	adrp	x11, _GPIO_CFG_GPIOD0_@GOTPAGE
Lloh38:
	ldr	x11, [x11, _GPIO_CFG_GPIOD0_@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w2, w8, w11
	str	w0, [x19, #12]
LBB0_12:
	str	w2, [x19, #16]
Lloh40:
	adrp	x8, _GPIO_CFG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GPIO_CFG@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc911x_reg_write
LBB0_13:
	str	w20, [x19, #8]
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"duplex state has changed"

	.comm	_MAC_CR,4,2                     ; @MAC_CR
l_.str.1:                               ; @.str.1
	.asciz	"configuring for full duplex mode"

	.comm	_MAC_CR_FDPX_,4,2               ; @MAC_CR_FDPX_
l_.str.2:                               ; @.str.2
	.asciz	"configuring for half duplex mode"

l_.str.3:                               ; @.str.3
	.asciz	"carrier state has changed"

l_.str.4:                               ; @.str.4
	.asciz	"configuring for carrier OK"

	.comm	_GPIO_CFG_LED1_EN_,4,2          ; @GPIO_CFG_LED1_EN_
	.comm	_GPIO_CFG,4,2                   ; @GPIO_CFG
l_.str.5:                               ; @.str.5
	.asciz	"configuring for no carrier"

	.comm	_GPIO_CFG_GPIOBUF0_,4,2         ; @GPIO_CFG_GPIOBUF0_
	.comm	_GPIO_CFG_GPIODIR0_,4,2         ; @GPIO_CFG_GPIODIR0_
	.comm	_GPIO_CFG_GPIOD0_,4,2           ; @GPIO_CFG_GPIOD0_
	.no_dead_strip	_smsc911x_phy_adjust_link
.subsections_via_symbols
