	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_issue_dmae_with_comp     ## -- Begin function bnx2x_issue_dmae_with_comp
	.p2align	4, 0x90
_bnx2x_issue_dmae_with_comp:            ## @bnx2x_issue_dmae_with_comp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_CHIP_REV_IS_SLOW
	movq	%rax, %r14
	movq	_BNX2X_MSG_DMAE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_dp_dmae
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movl	$0, (%r15)
	movq	%rbx, %rdi
	callq	_INIT_DMAE_C
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_bnx2x_post_dmae
	movl	$5, %edi
	callq	_udelay
	movl	(%r15), %eax
	movq	_DMAE_PCI_ERR_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_DMAE_COMP_VAL@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edx
	jne	LBB0_1
LBB0_7:
	testl	%eax, %ecx
	je	LBB0_11
## %bb.8:
	movq	_DMAE_PCI_ERROR@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	testq	%r14, %r14
	movl	$4001, %eax                     ## imm = 0xFA1
	movl	$400001, %r14d                  ## imm = 0x61A81
	cmovel	%eax, %r14d
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$50, %edi
	callq	_udelay
	movl	(%r15), %eax
	movq	_DMAE_PCI_ERR_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	(%r12), %edx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNX2X_RECOVERY_NIC_LOADING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_DMAE_TIMEOUT@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	_BNX2X_ERR
	movl	(%rbx), %ebx
	jmp	LBB0_10
LBB0_11:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_DMAE,4,2             ## @BNX2X_MSG_DMAE
	.comm	_DMAE_PCI_ERR_FLAG,4,2          ## @DMAE_PCI_ERR_FLAG
	.comm	_DMAE_COMP_VAL,4,2              ## @DMAE_COMP_VAL
	.comm	_BNX2X_RECOVERY_DONE,8,3        ## @BNX2X_RECOVERY_DONE
	.comm	_BNX2X_RECOVERY_NIC_LOADING,8,3 ## @BNX2X_RECOVERY_NIC_LOADING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMAE timeout!\n"

	.comm	_DMAE_TIMEOUT,4,2               ## @DMAE_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"DMAE PCI error!\n"

	.comm	_DMAE_PCI_ERROR,4,2             ## @DMAE_PCI_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_issue_dmae_with_comp     ; -- Begin function bnx2x_issue_dmae_with_comp
	.p2align	2
_bnx2x_issue_dmae_with_comp:            ; @bnx2x_issue_dmae_with_comp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	bl	_CHIP_REV_IS_SLOW
	mov	x22, x0
Lloh0:
	adrp	x8, _BNX2X_MSG_DMAE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_DMAE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_bnx2x_dp_dmae
	add	x19, x21, #8
	mov	x0, x19
	bl	_spin_lock_bh
	str	wzr, [x20]
	mov	x0, x21
	bl	_INIT_DMAE_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_bnx2x_post_dmae
	mov	w0, #5
	bl	_udelay
	ldr	w8, [x20]
Lloh3:
	adrp	x24, _DMAE_PCI_ERR_FLAG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DMAE_PCI_ERR_FLAG@GOTPAGEOFF]
	ldr	w9, [x24]
	bic	w10, w8, w9
Lloh5:
	adrp	x25, _DMAE_COMP_VAL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _DMAE_COMP_VAL@GOTPAGEOFF]
	ldr	w11, [x25]
	cmp	w10, w11
	b.eq	LBB0_5
; %bb.1:
	cmp	x22, #0
	mov	w8, #6785
	movk	w8, #6, lsl #16
	mov	w9, #4001
	csel	w26, w9, w8, eq
Lloh7:
	adrp	x23, _DMAE_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DMAE_TIMEOUT@GOTPAGEOFF]
Lloh9:
	adrp	x27, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh11:
	adrp	x28, _BNX2X_RECOVERY_NIC_LOADING@GOTPAGE
Lloh12:
	ldr	x28, [x28, _BNX2X_RECOVERY_NIC_LOADING@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w26, w26, #1
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_udelay
	ldr	w8, [x20]
	ldr	w9, [x24]
	bic	w10, w8, w9
	ldr	w11, [x25]
	cmp	w10, w11
	b.ne	LBB0_2
LBB0_5:
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh15:
	adrp	x23, _DMAE_PCI_ERROR@GOTPAGE
Lloh16:
	ldr	x23, [x23, _DMAE_PCI_ERROR@GOTPAGEOFF]
Lloh17:
	adrp	x22, l_.str.1@PAGE
Lloh18:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x22
	bl	_BNX2X_ERR
	ldr	w20, [x23]
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_DMAE,4,2             ; @BNX2X_MSG_DMAE
	.comm	_DMAE_PCI_ERR_FLAG,4,2          ; @DMAE_PCI_ERR_FLAG
	.comm	_DMAE_COMP_VAL,4,2              ; @DMAE_COMP_VAL
	.comm	_BNX2X_RECOVERY_DONE,8,3        ; @BNX2X_RECOVERY_DONE
	.comm	_BNX2X_RECOVERY_NIC_LOADING,8,3 ; @BNX2X_RECOVERY_NIC_LOADING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMAE timeout!\n"

	.comm	_DMAE_TIMEOUT,4,2               ; @DMAE_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"DMAE PCI error!\n"

	.comm	_DMAE_PCI_ERROR,4,2             ; @DMAE_PCI_ERROR
.subsections_via_symbols
