	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_phy_update_flowcontrol
_smsc911x_phy_update_flowcontrol:       ## @smsc911x_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
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	_AFC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smsc911x_reg_read
	movl	%eax, %r14d
	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), %edx
	andl	%eax, %edx
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	andl	$-16, %r14d
	testl	%eax, %eax
	movl	$15, %r15d
	cmovel	%eax, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, %r8
	cmoveq	%rax, %r8
	orl	%r14d, %r15d
	testl	%edx, %edx
	movl	$-65534, %r12d                  ## imm = 0xFFFF0002
	cmovel	%edx, %r12d
	movq	_hw@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	jmp	LBB0_3
LBB0_2:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	orl	$15, %r14d
	movl	%r14d, %r15d
LBB0_3:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_smsc911x_mac_write
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	_AFC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smsc911x_reg_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AFC_CFG,4,2                    ## @AFC_CFG
	.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	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx pause %s, tx pause %s"

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

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

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

	.comm	_FLOW,4,2                       ## @FLOW
	.no_dead_strip	_smsc911x_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 smsc911x_phy_update_flowcontrol
_smsc911x_phy_update_flowcontrol:       ; @smsc911x_phy_update_flowcontrol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x23, _AFC_CFG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AFC_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_smsc911x_reg_read
	mov	x20, x0
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_read
	mov	x22, x0
Lloh8:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_read
	mov	x1, x0
	mov	x0, x22
	bl	_mii_resolve_flowctrl_fdx
Lloh11:
	adrp	x8, _FLOW_CTRL_RX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #-65534
	csel	w21, wzr, w8, eq
Lloh14:
	adrp	x8, _FLOW_CTRL_TX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
	and	w10, w20, #0xfffffff0
Lloh19:
	adrp	x11, l_.str.2@PAGE
Lloh20:
	add	x11, x11, l_.str.2@PAGEOFF
	csel	x12, x11, x9, eq
	tst	w8, w0
	mov	w8, #15
	csel	w8, wzr, w8, eq
	orr	w20, w8, w10
Lloh21:
	adrp	x8, _hw@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	csel	x8, x11, x9, eq
	stp	x12, x8, [sp]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	b	LBB0_3
LBB0_2:
Lloh26:
	adrp	x8, _hw@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	mov	w21, #0
	orr	w20, w20, #0xf
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh31:
	adrp	x8, _FLOW@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FLOW@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_smsc911x_mac_write
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	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
	add	sp, sp, #80
	b	_smsc911x_reg_write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_AFC_CFG,4,2                    ; @AFC_CFG
	.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	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx pause %s, tx pause %s"

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

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

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

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