	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_set_pauseparam
_fec_enet_set_pauseparam:               ## @fec_enet_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rdx
	cmpq	8(%rbx), %rdx
	jne	LBB0_4
## %bb.5:
	movq	%rax, %r14
	xorl	%eax, %eax
	movl	$0, %esi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_FEC_PAUSE_FLAG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_7:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_FEC_PAUSE_FLAG_AUTONEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	%esi, %eax
	movl	%eax, 4(%r14)
	movq	%rdx, %rsi
	callq	_phy_set_sym_pause
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_fec_stop
LBB0_12:
	movl	(%r15), %edi
	callq	_phy_start_aneg
LBB0_13:
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_napi_disable
	movq	%r15, %rdi
	callq	_netif_tx_lock_bh
	movq	%r15, %rdi
	callq	_fec_restart
	movq	%r15, %rdi
	callq	_netif_tx_wake_all_queues
	movq	%r15, %rdi
	callq	_netif_tx_unlock_bh
	movq	%r14, %rdi
	callq	_napi_enable
	jmp	LBB0_15
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware only support enable/disable both tx and rx"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FEC_PAUSE_FLAG_ENABLE,4,2      ## @FEC_PAUSE_FLAG_ENABLE
	.comm	_FEC_PAUSE_FLAG_AUTONEG,4,2     ## @FEC_PAUSE_FLAG_AUTONEG
	.no_dead_strip	_fec_enet_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_set_pauseparam
_fec_enet_set_pauseparam:               ; @fec_enet_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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w0, LBB0_8
; %bb.1:
	ldp	x1, x8, [x21]
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _FEC_PAUSE_FLAG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEC_PAUSE_FLAG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x1, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _FEC_PAUSE_FLAG_AUTONEG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FEC_PAUSE_FLAG_AUTONEG@GOTPAGEOFF]
	ldr	x3, [x21, #16]
Lloh5:
	ldr	w9, [x9]
	cmp	x3, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	x2, x1
	bl	_phy_set_sym_pause
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_fec_stop
LBB0_5:
	ldr	w0, [x19]
	bl	_phy_start_aneg
LBB0_6:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_napi_disable
	mov	x0, x19
	bl	_netif_tx_lock_bh
	mov	x0, x19
	bl	_fec_restart
	mov	x0, x19
	bl	_netif_tx_wake_all_queues
	mov	x0, x19
	bl	_netif_tx_unlock_bh
	mov	x0, x20
	bl	_napi_enable
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware only support enable/disable both tx and rx"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FEC_PAUSE_FLAG_ENABLE,4,2      ; @FEC_PAUSE_FLAG_ENABLE
	.comm	_FEC_PAUSE_FLAG_AUTONEG,4,2     ; @FEC_PAUSE_FLAG_AUTONEG
	.no_dead_strip	_fec_enet_set_pauseparam
.subsections_via_symbols
