	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_set_pauseparam
_bnx2_set_pauseparam:                   ## @bnx2_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, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, 12(%rax)
	cmpq	$0, 16(%r15)
	je	LBB0_1
## %bb.2:
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_5
LBB0_4:
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%rbx)
LBB0_5:
	cmpq	$0, (%r15)
	movq	_AUTONEG_FLOW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_7
## %bb.6:
	orl	%eax, 8(%rbx)
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_7:
	notl	%eax
	andl	%eax, 8(%rbx)
LBB0_8:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bnx2_setup_phy
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
	.comm	_AUTONEG_FLOW_CTRL,4,2          ## @AUTONEG_FLOW_CTRL
	.no_dead_strip	_bnx2_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_set_pauseparam
_bnx2_set_pauseparam:                   ; @bnx2_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [x0, #12]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FLOW_CTRL_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_2:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _FLOW_CTRL_TX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #12]
LBB0_4:
	ldr	x9, [x21]
Lloh6:
	adrp	x8, _AUTONEG_FLOW_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUTONEG_FLOW_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_6:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_7:
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_bnx2_setup_phy
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
	.comm	_AUTONEG_FLOW_CTRL,4,2          ; @AUTONEG_FLOW_CTRL
	.no_dead_strip	_bnx2_set_pauseparam
.subsections_via_symbols
