	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_func_switch_update
_bnx2x_func_switch_update:              ## @bnx2x_func_switch_update
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	leaq	-48(%rbp), %r15
	movq	_RAMROD_COMP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movq	_RAMROD_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movq	%rbx, -56(%rbp)
	movq	_BNX2X_F_CMD_SWITCH_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %r15
	movq	%r15, %rsi
	callq	___set_bit
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_BNX2X_F_UPDATE_TX_SWITCH_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
LBB0_2:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_func_state_change
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAMROD_COMP_WAIT,4,2           ## @RAMROD_COMP_WAIT
	.comm	_RAMROD_RETRY,4,2               ## @RAMROD_RETRY
	.comm	_BNX2X_F_CMD_SWITCH_UPDATE,4,2  ## @BNX2X_F_CMD_SWITCH_UPDATE
	.comm	_BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG,4,2 ## @BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG
	.comm	_BNX2X_F_UPDATE_TX_SWITCH_SUSPEND,4,2 ## @BNX2X_F_UPDATE_TX_SWITCH_SUSPEND
	.no_dead_strip	_bnx2x_func_switch_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_func_switch_update
_bnx2x_func_switch_update:              ; @bnx2x_func_switch_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	mov	x22, sp
	add	x20, x22, #16
Lloh0:
	adrp	x8, _RAMROD_COMP_WAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAMROD_COMP_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
Lloh3:
	adrp	x8, _RAMROD_RETRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAMROD_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	str	x19, [sp, #8]
Lloh6:
	adrp	x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2X_F_CMD_SWITCH_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh9:
	adrp	x8, _BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x20, x22, #20
	mov	x1, x20
	bl	___set_bit
	cbz	w21, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _BNX2X_F_UPDATE_TX_SWITCH_SUSPEND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_F_UPDATE_TX_SWITCH_SUSPEND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_func_state_change
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RAMROD_COMP_WAIT,4,2           ; @RAMROD_COMP_WAIT
	.comm	_RAMROD_RETRY,4,2               ; @RAMROD_RETRY
	.comm	_BNX2X_F_CMD_SWITCH_UPDATE,4,2  ; @BNX2X_F_CMD_SWITCH_UPDATE
	.comm	_BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG,4,2 ; @BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG
	.comm	_BNX2X_F_UPDATE_TX_SWITCH_SUSPEND,4,2 ; @BNX2X_F_UPDATE_TX_SWITCH_SUSPEND
	.no_dead_strip	_bnx2x_func_switch_update
.subsections_via_symbols
