	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_func_wait_started
_bnx2x_func_wait_started:               ## @bnx2x_func_wait_started
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 24(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	_USING_MSIX_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.2:
	movq	16(%r15), %rax
	jmp	LBB0_4
LBB0_3:
	movq	8(%r15), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_synchronize_irq
	movq	_bnx2x_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	leaq	4(%r15), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_func_get_state
	movq	_BNX2X_F_STATE_STARTED@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.5:
	movl	$-49, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_func_get_state
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_6
LBB0_8:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_func_get_state
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.9:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	%r13, -56(%rbp)
	movq	_RAMROD_DRV_CLR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-60(%rbp), %rsi
	callq	___set_bit
	movq	_BNX2X_F_CMD_TX_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_func_state_change
	movq	_BNX2X_F_CMD_TX_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_func_state_change
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USING_MSIX_FLAG,4,2            ## @USING_MSIX_FLAG
	.comm	_bnx2x_wq,4,2                   ## @bnx2x_wq
	.comm	_BNX2X_F_STATE_STARTED,8,3      ## @BNX2X_F_STATE_STARTED
	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hmmm... Unexpected function state! Forcing STARTED-->TX_ST0PPED-->STARTED\n"

	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ## @RAMROD_DRV_CLR_ONLY
	.comm	_BNX2X_F_CMD_TX_STOP,4,2        ## @BNX2X_F_CMD_TX_STOP
	.comm	_BNX2X_F_CMD_TX_START,4,2       ## @BNX2X_F_CMD_TX_START
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bnx2x_func_wait_started
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_func_wait_started
_bnx2x_func_wait_started:               ; @bnx2x_func_wait_started
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _USING_MSIX_FLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USING_MSIX_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	w0, [x8]
	bl	_synchronize_irq
Lloh3:
	adrp	x8, _bnx2x_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bnx2x_wq@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_flush_workqueue
	add	x20, x19, #4
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_func_get_state
Lloh6:
	adrp	x21, _BNX2X_F_STATE_STARTED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BNX2X_F_STATE_STARTED@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.5:
	mov	w22, #-49
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_func_get_state
	ldr	x8, [x21]
	cmp	x0, x8
	ccmp	w22, #0, #4, ne
	add	w22, w22, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_func_get_state
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh8:
	adrp	x8, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	str	x20, [sp, #16]
Lloh13:
	adrp	x8, _RAMROD_DRV_CLR_ONLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RAMROD_DRV_CLR_ONLY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x8, sp, #8
	orr	x1, x8, #0x4
	bl	___set_bit
Lloh16:
	adrp	x8, _BNX2X_F_CMD_TX_STOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNX2X_F_CMD_TX_STOP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_bnx2x_func_state_change
Lloh19:
	adrp	x8, _BNX2X_F_CMD_TX_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNX2X_F_CMD_TX_START@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_bnx2x_func_state_change
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USING_MSIX_FLAG,4,2            ; @USING_MSIX_FLAG
	.comm	_bnx2x_wq,4,2                   ; @bnx2x_wq
	.comm	_BNX2X_F_STATE_STARTED,8,3      ; @BNX2X_F_STATE_STARTED
	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hmmm... Unexpected function state! Forcing STARTED-->TX_ST0PPED-->STARTED\n"

	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ; @RAMROD_DRV_CLR_ONLY
	.comm	_BNX2X_F_CMD_TX_STOP,4,2        ; @BNX2X_F_CMD_TX_STOP
	.comm	_BNX2X_F_CMD_TX_START,4,2       ; @BNX2X_F_CMD_TX_START
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnx2x_func_wait_started
.subsections_via_symbols
