	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_read_dmae                ## -- Begin function bnx2x_read_dmae
	.p2align	4, 0x90
_bnx2x_read_dmae:                       ## @bnx2x_read_dmae
	.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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.8:
	movq	_DMAE_SRC_GRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMAE_DST_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_prep_dmae_with_comp
	sarl	$2, %r15d
	movl	%r15d, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_wb_data@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_bnx2x_sp_mapping
	movl	%eax, %edi
	callq	_U64_LO
	movl	%eax, -52(%rbp)
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_bnx2x_sp_mapping
	movl	%eax, %edi
	callq	_U64_HI
	movl	%eax, -56(%rbp)
	movl	%r12d, -60(%rbp)
	movq	_wb_comp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_sp
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_bnx2x_issue_dmae_with_comp
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_BNX2X_ERR
	xorl	%eax, %eax
	callq	_bnx2x_panic
	jmp	LBB0_10
LBB0_1:
	movq	_wb_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_sp
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_CHIP_IS_E1
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.3:
	movl	%r12d, %r12d
	movl	%r15d, %r15d
	shlq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	movq	%r13, %rdi
	callq	_bnx2x_reg_rd_ind
	movl	%eax, (%r14,%rbx)
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
	jmp	LBB0_10
LBB0_5:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.6:
	movl	%r12d, %r12d
	movl	%r15d, %r15d
	shlq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	movq	%r13, %rdi
	callq	_REG_RD
	movl	%eax, (%r14,%rbx)
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wb_data,8,3                    ## @wb_data
	.comm	_DMAE_SRC_GRC,4,2               ## @DMAE_SRC_GRC
	.comm	_DMAE_DST_PCI,4,2               ## @DMAE_DST_PCI
	.comm	_wb_comp,4,2                    ## @wb_comp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMAE returned failure %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_read_dmae                ; -- Begin function bnx2x_read_dmae
	.p2align	2
_bnx2x_read_dmae:                       ; @bnx2x_read_dmae
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _DMAE_SRC_GRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAE_SRC_GRC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DMAE_DST_PCI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMAE_DST_PCI@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_bnx2x_prep_dmae_with_comp
	asr	w8, w20, #2
	str	w8, [sp, #8]
	str	xzr, [sp, #24]
Lloh6:
	adrp	x20, _wb_data@GOTPAGE
Lloh7:
	ldr	x20, [x20, _wb_data@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_bnx2x_sp_mapping
	bl	_U64_LO
	str	w0, [sp, #20]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_bnx2x_sp_mapping
	bl	_U64_HI
	stp	w21, w0, [sp, #12]
Lloh8:
	adrp	x8, _wb_comp@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wb_comp@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_sp
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_bnx2x_issue_dmae_with_comp
	cbz	w0, LBB0_10
; %bb.2:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	bl	_bnx2x_panic
	b	LBB0_10
LBB0_3:
Lloh13:
	adrp	x8, _wb_data@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wb_data@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_sp
	mov	x22, x0
	mov	x0, x19
	bl	_CHIP_IS_E1
	cmp	w21, #1
	cbz	x0, LBB0_7
; %bb.4:
	b.lt	LBB0_10
; %bb.5:
	mov	w21, w21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_reg_rd_ind
	str	w0, [x22], #4
	add	w20, w20, #4
	subs	x21, x21, #1
	b.ne	LBB0_6
	b	LBB0_10
LBB0_7:
	b.lt	LBB0_10
; %bb.8:
	mov	w21, w21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_REG_RD
	str	w0, [x22], #4
	add	w20, w20, #4
	subs	x21, x21, #1
	b.ne	LBB0_9
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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_wb_data,8,3                    ; @wb_data
	.comm	_DMAE_SRC_GRC,4,2               ; @DMAE_SRC_GRC
	.comm	_DMAE_DST_PCI,4,2               ; @DMAE_DST_PCI
	.comm	_wb_comp,4,2                    ; @wb_comp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMAE returned failure %d\n"

.subsections_via_symbols
