	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_phy_update_flowcontrol
_smsc95xx_phy_update_flowcontrol:       ## @smsc95xx_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	%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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	_AFC_CFG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_5
## %bb.3:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_mii_resolve_flowctrl_fdx
	movq	%rax, %r15
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	movq	(%rbx), %rcx
	andq	%r15, %rcx
	movl	$-65534, %r14d                  ## imm = 0xFFFF0002
	cmovel	%eax, %r14d
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%r15, %rcx
	movl	-44(%rbp), %edx
	andl	$-16, %edx
	testq	%rcx, %rcx
	movl	$15, %ecx
	cmovel	%eax, %ecx
	orl	%edx, %ecx
	movl	%ecx, -44(%rbp)
	movq	%r12, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	andq	%r15, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rax, %rdx
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rsi
	andq	(%rsi), %r15
	cmoveq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_devdbg
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devwarn
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_devdbg
LBB0_7:
	orb	$15, -44(%rbp)
	xorl	%r14d, %r14d
LBB0_8:
	movq	_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_smsc95xx_write_reg
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_smsc95xx_write_reg
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AFC_CFG,4,2                    ## @AFC_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading AFC_CFG"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_FLOW_CTRL_RX,8,3               ## @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,8,3               ## @FLOW_CTRL_TX
L_.str.1:                               ## @.str.1
	.asciz	"rx pause %s, tx pause %s"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"half duplex"

	.comm	_FLOW,4,2                       ## @FLOW
	.no_dead_strip	_smsc95xx_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 smsc95xx_phy_update_flowcontrol
_smsc95xx_phy_update_flowcontrol:       ; @smsc95xx_phy_update_flowcontrol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [sp, #28]
Lloh0:
	adrp	x23, _AFC_CFG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AFC_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #28
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_mii_resolve_flowctrl_fdx
	mov	x21, x0
Lloh5:
	adrp	x22, _FLOW_CTRL_RX@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FLOW_CTRL_RX@GOTPAGEOFF]
	ldr	x8, [x22]
	tst	x8, x0
	mov	w8, #-65534
	csel	w20, wzr, w8, eq
Lloh7:
	adrp	x24, _FLOW_CTRL_TX@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FLOW_CTRL_TX@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w9, [sp, #28]
	and	w9, w9, #0xfffffff0
	tst	x8, x0
	mov	w8, #15
	csel	w8, wzr, w8, eq
	orr	w8, w8, w9
	str	w8, [sp, #28]
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	ldr	x10, [x22]
	tst	x10, x21
	csel	x10, x9, x8, eq
	ldr	x11, [x24]
	tst	x11, x21
	csel	x8, x9, x8, eq
	stp	x10, x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devdbg
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devwarn
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_7
; %bb.6:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_7:
	mov	w20, #0
	ldr	w8, [sp, #28]
	orr	w8, w8, #0xf
	str	w8, [sp, #28]
LBB0_8:
Lloh19:
	adrp	x8, _FLOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FLOW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_smsc95xx_write_reg
	ldr	w1, [x23]
	ldr	w2, [sp, #28]
	mov	x0, x19
	bl	_smsc95xx_write_reg
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AFC_CFG,4,2                    ; @AFC_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading AFC_CFG"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_FLOW_CTRL_RX,8,3               ; @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,8,3               ; @FLOW_CTRL_TX
l_.str.1:                               ; @.str.1
	.asciz	"rx pause %s, tx pause %s"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"half duplex"

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