	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_set_pauseparam
_jme_set_pauseparam:                    ## @jme_set_pauseparam
	.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	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, %r14
	movl	(%rax), %eax
	movq	_TXPFC_PF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	setne	%bl
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	setne	%cl
	cmpb	%cl, %bl
	je	LBB0_2
## %bb.1:
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	testq	%rsi, %rsi
	cmovel	%ecx, %edx
	movl	%edx, (%r14)
	movq	_JME_TXPFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_jwrite32
LBB0_2:
	leaq	20(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	4(%r14), %eax
	movq	_RXMCS_FLOWCTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	setne	%bl
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	setne	%cl
	cmpb	%cl, %bl
	je	LBB0_4
## %bb.3:
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	testq	%rsi, %rsi
	cmovel	%ecx, %edx
	movl	%edx, 4(%r14)
	movq	_JME_RXMCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_jwrite32
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	12(%r14), %esi
	movl	16(%r14), %edi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_jme_mdio_read
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rdx
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	setne	%bl
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	setne	%dl
	cmpb	%bl, %dl
	je	LBB0_6
## %bb.5:
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%ecx
	andl	%eax, %ecx
	testq	%rsi, %rsi
	cmovnel	%edx, %ecx
	movl	12(%r14), %esi
	movl	16(%r14), %edi
	movl	(%r12), %edx
	callq	_jme_mdio_write
LBB0_6:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXPFC_PF_EN,4,2                ## @TXPFC_PF_EN
	.comm	_JME_TXPFC,4,2                  ## @JME_TXPFC
	.comm	_RXMCS_FLOWCTRL,4,2             ## @RXMCS_FLOWCTRL
	.comm	_JME_RXMCS,4,2                  ## @JME_RXMCS
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.no_dead_strip	_jme_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_set_pauseparam
_jme_set_pauseparam:                    ; @jme_set_pauseparam
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TXPFC_PF_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TXPFC_PF_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w11, ne
	ldr	x10, [x20]
	cmp	x10, #0
	cset	w12, ne
	cmp	w11, w12
	b.eq	LBB0_2
; %bb.1:
	bic	w11, w8, w9
	orr	w8, w9, w8
	cmp	x10, #0
	csel	w2, w8, w11, ne
	str	w2, [x19]
Lloh3:
	adrp	x8, _JME_TXPFC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JME_TXPFC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_jwrite32
LBB0_2:
	add	x21, x19, #20
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _RXMCS_FLOWCTRL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RXMCS_FLOWCTRL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w11, ne
	ldr	x10, [x20, #8]
	cmp	x10, #0
	cset	w12, ne
	cmp	w11, w12
	b.eq	LBB0_4
; %bb.3:
	bic	w11, w8, w9
	orr	w8, w9, w8
	cmp	x10, #0
	csel	w2, w8, w11, ne
	str	w2, [x19, #4]
Lloh9:
	adrp	x8, _JME_RXMCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JME_RXMCS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_jwrite32
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_bh
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_bh
	ldp	w1, w0, [x19, #12]
Lloh12:
	adrp	x22, _MII_ADVERTISE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MII_ADVERTISE@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_jme_mdio_read
Lloh14:
	adrp	x8, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	cset	w10, ne
	ldr	x9, [x20, #16]
	cmp	x9, #0
	cset	w11, ne
	cmp	w11, w10
	b.eq	LBB0_6
; %bb.5:
	orr	w10, w8, w0
	bic	w8, w0, w8
	cmp	x9, #0
	csel	w3, w10, w8, ne
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x22]
	bl	_jme_mdio_write
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TXPFC_PF_EN,4,2                ; @TXPFC_PF_EN
	.comm	_JME_TXPFC,4,2                  ; @JME_TXPFC
	.comm	_RXMCS_FLOWCTRL,4,2             ; @RXMCS_FLOWCTRL
	.comm	_JME_RXMCS,4,2                  ; @JME_RXMCS
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.no_dead_strip	_jme_set_pauseparam
.subsections_via_symbols
