	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_phy_update_flowcontrol
_smsc9420_phy_update_flowcontrol:       ## @smsc9420_phy_update_flowcontrol
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdx
	movq	(%rdx), %rbx
	movq	(%rbx), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%eax, %r15d
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_mii_resolve_flowctrl_fdx
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$-65534, %ebx                   ## imm = 0xFFFF0002
	cmovel	%ecx, %ebx
	movq	_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r9
	movq	%r9, %r8
	cmoveq	%rcx, %r8
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rdi
	andl	(%rdi), %eax
	cmoveq	%rcx, %r9
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	jmp	LBB0_3
LBB0_2:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_info
LBB0_3:
	movq	_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smsc9420_reg_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx pause %s, tx pause %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
L_.str.3:                               ## @.str.3
	.asciz	"half duplex\n"

	.comm	_FLOW,4,2                       ## @FLOW
	.no_dead_strip	_smsc9420_phy_update_flowcontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_phy_update_flowcontrol
_smsc9420_phy_update_flowcontrol:       ; @smsc9420_phy_update_flowcontrol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x2, [x0]
	ldr	x20, [x2]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_phy_read
	mov	x21, x0
Lloh6:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_phy_read
	mov	x1, x0
	mov	x0, x21
	bl	_mii_resolve_flowctrl_fdx
Lloh9:
	adrp	x8, _FLOW_CTRL_RX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #-65534
	csel	w20, wzr, w8, eq
Lloh12:
	adrp	x8, _link@GOTPAGE
Lloh13:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x19]
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh17:
	adrp	x9, l_.str.2@PAGE
Lloh18:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x10, x9, x8, eq
Lloh19:
	adrp	x11, _FLOW_CTRL_TX@GOTPAGE
Lloh20:
	ldr	x11, [x11, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	tst	w11, w0
	csel	x8, x9, x8, eq
	stp	x10, x8, [sp]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _link@GOTPAGE
Lloh25:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x3, l_.str.3@PAGE
Lloh28:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	mov	w20, #0
LBB0_3:
Lloh29:
	adrp	x8, _FLOW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FLOW@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_smsc9420_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx pause %s, tx pause %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
l_.str.3:                               ; @.str.3
	.asciz	"half duplex\n"

	.comm	_FLOW,4,2                       ; @FLOW
	.no_dead_strip	_smsc9420_phy_update_flowcontrol
.subsections_via_symbols
