	.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), %ecx
	movl	%ecx, %edx
	cmovel	%ebx, %edx
	cmpq	$0, 8(%r12)
	movq	_EFX_FC_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	cmovel	%ebx, %esi
	orl	%edx, %esi
	cmpq	$0, (%r12)
	movq	_EFX_FC_AUTO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovnel	%edx, %ebx
	orl	%esi, %ebx
	testl	%eax, %ebx
	je	LBB0_4
## %bb.1:
	andl	%ebx, %ecx
	jne	LBB0_4
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%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_16
LBB0_4:
	testl	%edx, %ebx
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_6
LBB0_7:
	movq	32(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:
	movl	%ebx, %edx
	andl	%eax, %edx
	je	LBB0_11
## %bb.9:
	testl	%eax, 8(%r15)
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	*%rcx
LBB0_11:
	movq	(%r15), %rax
	movq	(%rax), %r12
	movl	8(%r15), %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_efx_link_set_wanted_fc
	movq	(%r15), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_13
## %bb.12:
	xorl	8(%r15), %r13d
	movq	_EFX_FC_AUTO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_15
LBB0_13:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	jmp	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	callq	_efx_mac_reconfigure
	xorl	%ebx, %ebx
LBB0_16:
	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
LBB0_6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_3
	.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"

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
	ldp	x10, x8, [x21, #8]
Lloh0:
	adrp	x9, _EFX_FC_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFX_FC_RX@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
	cmp	x8, #0
	csel	w9, wzr, w11, eq
Lloh3:
	adrp	x8, _EFX_FC_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFX_FC_TX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x12, [x21]
	cmp	x10, #0
	csel	w10, wzr, w8, eq
	orr	w9, w10, w9
Lloh6:
	adrp	x22, _EFX_FC_AUTO@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EFX_FC_AUTO@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	x12, #0
	csel	w12, wzr, w10, eq
	orr	w21, w9, w12
	and	w9, w21, w8
	and	w11, w21, w11
	cmp	w9, #0
	ccmp	w11, #0, #0, ne
	b.eq	LBB0_10
; %bb.1:
	tst	w21, w10
	b.eq	LBB0_3
; %bb.2:
	ldr	x10, [x20]
	ldr	x10, [x10]
	cbz	x10, LBB0_14
LBB0_3:
	ldr	x10, [x20, #32]
	ldr	x10, [x10]
	cmp	x10, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x20, #8]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	blr	x10
LBB0_6:
	ldr	x8, [x20]
	ldr	x24, [x8]
	ldr	w23, [x20, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_efx_link_set_wanted_fc
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #8]
	eor	w8, w8, w23
	ldr	w9, [x22]
	tst	w8, w9
	b.eq	LBB0_12
LBB0_8:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	b	LBB0_13
LBB0_10:
Lloh13:
	adrp	x8, _drv@GOTPAGE
Lloh14:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_netif_dbg
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_efx_mac_reconfigure
	mov	w21, #0
LBB0_13:
	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
LBB0_14:
Lloh21:
	adrp	x8, _drv@GOTPAGE
Lloh22:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
Lloh24:
	adrp	x3, l_.str.1@PAGE
Lloh25:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to advertise requested flow control setting\n"

	.no_dead_strip	_efx_ethtool_set_pauseparam
.subsections_via_symbols
