	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ethtool_set_pauseparam
_efx_ethtool_set_pauseparam:            ## @efx_ethtool_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, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %r14
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r12)
	movq	_EFX_FC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	cmovel	%ebx, %ecx
	cmpq	$0, 8(%r12)
	movq	_EFX_FC_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	movl	%r13d, %edx
	cmovel	%ebx, %edx
	orl	%ecx, %edx
	cmpq	$0, (%r12)
	movq	_EFX_FC_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %ebx
	orl	%edx, %ebx
	testl	%r13d, %ebx
	je	LBB0_4
## %bb.1:
	andl	%ebx, %eax
	jne	LBB0_4
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str(%rip), %rcx
LBB0_3:
	movq	%r15, %rdi
	callq	_netif_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_4:
	testl	%ecx, %ebx
	je	LBB0_7
## %bb.5:
	cmpq	$0, (%r15)
	je	LBB0_6
LBB0_7:
	testl	%r13d, %ebx
	je	LBB0_8
## %bb.9:
	andl	8(%r15), %r13d
	movq	%r15, %rdi
	callq	_EFX_WORKAROUND_11482
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_efx_nic_rev
	movq	_EFX_REV_FALCON_B0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_falcon_stop_nic_stats
	movq	%r15, %rdi
	callq	_falcon_drain_tx_fifo
	movq	%r15, %rdi
	callq	_falcon_reconfigure_xmac
	movq	%r15, %rdi
	callq	_falcon_start_nic_stats
	jmp	LBB0_14
LBB0_8:
	movq	%r15, %rdi
	callq	_EFX_WORKAROUND_11482
	jmp	LBB0_14
LBB0_6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_3
LBB0_13:
	movq	_RESET_TYPE_INVISIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_efx_schedule_reset
LBB0_14:
	movq	(%r15), %r12
	movl	8(%r15), %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_efx_link_set_wanted_fc
	cmpq	%r12, (%r15)
	jne	LBB0_16
## %bb.15:
	xorl	8(%r15), %r13d
	movq	_EFX_FC_AUTO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_18
LBB0_16:
	movq	32(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	jmp	LBB0_19
LBB0_18:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	xorl	%ebx, %ebx
LBB0_19:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_FC_RX,4,2                  ## @EFX_FC_RX
	.comm	_EFX_FC_TX,4,2                  ## @EFX_FC_TX
	.comm	_EFX_FC_AUTO,4,2                ## @EFX_FC_AUTO
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flow control unsupported: tx ON rx OFF\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Autonegotiation is disabled\n"

	.comm	_EFX_REV_FALCON_B0,8,3          ## @EFX_REV_FALCON_B0
	.comm	_RESET_TYPE_INVISIBLE,4,2       ## @RESET_TYPE_INVISIBLE
L_.str.2:                               ## @.str.2
	.asciz	"Unable to advertise requested flow control setting\n"

	.no_dead_strip	_efx_ethtool_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ethtool_set_pauseparam
_efx_ethtool_set_pauseparam:            ; @efx_ethtool_set_pauseparam
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	bl	_netdev_priv
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x9, _EFX_FC_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFX_FC_RX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
Lloh3:
	adrp	x9, _EFX_FC_TX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EFX_FC_TX@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x9]
	ldp	x11, x9, [x21]
	cmp	x9, #0
	csel	w9, wzr, w23, eq
	orr	w8, w9, w8
Lloh6:
	adrp	x22, _EFX_FC_AUTO@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EFX_FC_AUTO@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	x11, #0
	csel	w11, wzr, w9, eq
	orr	w21, w8, w11
	and	w8, w21, w23
	and	w10, w21, w10
	cmp	w8, #0
	ccmp	w10, #0, #0, ne
	b.eq	LBB0_8
; %bb.1:
	tst	w21, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x20]
	cbz	x9, LBB0_11
LBB0_3:
	cbz	w8, LBB0_10
; %bb.4:
	ldr	w24, [x20, #8]
	mov	x0, x20
	bl	_EFX_WORKAROUND_11482
	cbz	x0, LBB0_13
; %bb.5:
	and	w8, w24, w23
	cbnz	w8, LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_efx_nic_rev
Lloh8:
	adrp	x8, _EFX_REV_FALCON_B0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFX_REV_FALCON_B0@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_falcon_stop_nic_stats
	mov	x0, x20
	bl	_falcon_drain_tx_fifo
	mov	x0, x20
	bl	_falcon_reconfigure_xmac
	mov	x0, x20
	bl	_falcon_start_nic_stats
	b	LBB0_13
LBB0_8:
Lloh11:
	adrp	x8, _drv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_netif_dbg
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_10:
	mov	x0, x20
	bl	_EFX_WORKAROUND_11482
	b	LBB0_13
LBB0_11:
Lloh19:
	adrp	x8, _drv@GOTPAGE
Lloh20:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_12:
Lloh24:
	adrp	x8, _RESET_TYPE_INVISIBLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RESET_TYPE_INVISIBLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_efx_schedule_reset
LBB0_13:
	ldr	x24, [x20]
	ldr	w23, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_efx_link_set_wanted_fc
	ldr	x8, [x20]
	cmp	x8, x24
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [x20, #8]
	eor	w8, w8, w23
	ldr	w9, [x22]
	tst	w8, w9
	b.eq	LBB0_17
LBB0_15:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_17
; %bb.16:
	mov	x21, x0
Lloh27:
	adrp	x8, _drv@GOTPAGE
Lloh28:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
Lloh30:
	adrp	x3, l_.str.2@PAGE
Lloh31:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	b	LBB0_18
LBB0_17:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	w21, #0
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_FC_RX,4,2                  ; @EFX_FC_RX
	.comm	_EFX_FC_TX,4,2                  ; @EFX_FC_TX
	.comm	_EFX_FC_AUTO,4,2                ; @EFX_FC_AUTO
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flow control unsupported: tx ON rx OFF\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Autonegotiation is disabled\n"

	.comm	_EFX_REV_FALCON_B0,8,3          ; @EFX_REV_FALCON_B0
	.comm	_RESET_TYPE_INVISIBLE,4,2       ; @RESET_TYPE_INVISIBLE
l_.str.2:                               ; @.str.2
	.asciz	"Unable to advertise requested flow control setting\n"

	.no_dead_strip	_efx_ethtool_set_pauseparam
.subsections_via_symbols
