	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_features             ## -- Begin function bnx2x_set_features
	.p2align	4, 0x90
_bnx2x_set_features:                    ## @bnx2x_set_features
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%r15), %ebx
	xorl	%r14d, %ebx
	movl	16(%rax), %edi
	callq	_pci_num_vf
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_NETIF_F_LOOPBACK@GOTPCREL(%rip), %rax
	movq	8(%r12), %rcx
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_LOOPBACK_BMAC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_LOOPBACK_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_7
LBB0_5:
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %ebx
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	%rax, 8(%r12)
LBB0_8:
	movq	(%r12), %rcx
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	callq	_bnx2x_reload_if_running
	movl	%eax, %ecx
	testl	%eax, %eax
	movl	$1, %eax
	cmovnel	%ecx, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_LOOPBACK,4,2           ## @NETIF_F_LOOPBACK
	.comm	_LOOPBACK_BMAC,8,3              ## @LOOPBACK_BMAC
	.comm	_LOOPBACK_NONE,8,3              ## @LOOPBACK_NONE
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_BNX2X_RECOVERY_DONE,8,3        ## @BNX2X_RECOVERY_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_features             ; -- Begin function bnx2x_set_features
	.p2align	2
_bnx2x_set_features:                    ; @bnx2x_set_features
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w22, [x19]
	ldr	w0, [x0, #16]
	bl	_pci_num_vf
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _NETIF_F_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _LOOPBACK_BMAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOOPBACK_BMAC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _LOOPBACK_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOOPBACK_NONE@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_6
LBB0_5:
	eor	w8, w22, w20
Lloh7:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	str	x8, [x21, #8]
LBB0_7:
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	str	w20, [x19]
	mov	x0, x19
	bl	_bnx2x_reload_if_running
	cmp	w0, #0
	csinc	w0, w0, wzr, ne
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_LOOPBACK,4,2           ; @NETIF_F_LOOPBACK
	.comm	_LOOPBACK_BMAC,8,3              ; @LOOPBACK_BMAC
	.comm	_LOOPBACK_NONE,8,3              ; @LOOPBACK_NONE
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_BNX2X_RECOVERY_DONE,8,3        ; @BNX2X_RECOVERY_DONE
.subsections_via_symbols
