	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_ethtool_set_pauseparam
_aq_ethtool_set_pauseparam:             ## @aq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	cmpq	$0, 16(%r14)
	movq	_AQ_NIC_FC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	notl	%eax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	andl	(%rcx), %eax
LBB0_6:
	movl	%eax, (%rcx)
	cmpq	$0, 8(%r14)
	movq	_AQ_NIC_FC_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	je	LBB0_8
## %bb.7:
	orl	%edx, %eax
	jmp	LBB0_9
LBB0_8:
	notl	%edx
	andl	%edx, %eax
LBB0_9:
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_AQ_NIC_FC_RX,4,2               ## @AQ_NIC_FC_RX
	.comm	_AQ_NIC_FC_TX,4,2               ## @AQ_NIC_FC_TX
	.no_dead_strip	_aq_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 aq_ethtool_set_pauseparam
_aq_ethtool_set_pauseparam:             ; @aq_ethtool_set_pauseparam
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	mov	x19, x0
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _AQ_NIC_FC_RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AQ_NIC_FC_RX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w10, [x8]
	orr	w9, w10, w9
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w10, [x8]
	bic	w9, w10, w9
LBB0_6:
	str	w9, [x8]
	ldr	x11, [x20, #8]
Lloh9:
	adrp	x10, _AQ_NIC_FC_TX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AQ_NIC_FC_TX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cbz	x11, LBB0_8
; %bb.7:
	orr	w9, w9, w10
	b	LBB0_9
LBB0_8:
	bic	w9, w9, w10
LBB0_9:
	str	w9, [x8]
	mov	x0, x19
	bl	_mutex_lock
	ldp	x0, x8, [x19, #8]
	ldr	x8, [x8]
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_AQ_NIC_FC_RX,4,2               ; @AQ_NIC_FC_RX
	.comm	_AQ_NIC_FC_TX,4,2               ; @AQ_NIC_FC_TX
	.no_dead_strip	_aq_ethtool_set_pauseparam
.subsections_via_symbols
