	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_start_pex_dma
_qlcnic_start_pex_dma:                  ## @qlcnic_start_pex_dma
	.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	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	(%rax), %rsi
	movq	_QLC_83XX_DMA_ENGINE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qlcnic_get_saved_state
	movq	%rax, %rdi
	callq	_QLC_DMA_REG_BASE_ADDR
	movq	%rax, %r15
	movq	_QLC_DMA_CMD_BUFF_ADDR_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	4(%r12), %edx
	movq	%r13, %rdi
	callq	_qlcnic_ind_wr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_QLC_DMA_CMD_BUFF_ADDR_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_qlcnic_ind_wr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_QLC_DMA_CMD_STATUS_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_qlcnic_ind_wr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	addq	(%rbx), %r15
	movl	$400, %ebx                      ## imm = 0x190
	movq	_BIT_1@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_ind_rd
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$250, %edi
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_4
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_DMA_ENGINE_INDEX,4,2  ## @QLC_83XX_DMA_ENGINE_INDEX
	.comm	_QLC_DMA_CMD_BUFF_ADDR_LOW,8,3  ## @QLC_DMA_CMD_BUFF_ADDR_LOW
	.comm	_QLC_DMA_CMD_BUFF_ADDR_HI,8,3   ## @QLC_DMA_CMD_BUFF_ADDR_HI
	.comm	_QLC_DMA_CMD_STATUS_CTRL,8,3    ## @QLC_DMA_CMD_STATUS_CTRL
	.comm	_BIT_1,4,2                      ## @BIT_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PEX DMA operation timed out"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_start_pex_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_start_pex_dma
_qlcnic_start_pex_dma:                  ; @qlcnic_start_pex_dma
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	ldp	x8, x19, [x0]
	ldr	x1, [x8]
Lloh0:
	adrp	x8, _QLC_83XX_DMA_ENGINE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_DMA_ENGINE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_qlcnic_get_saved_state
	bl	_QLC_DMA_REG_BASE_ADDR
	mov	x22, x0
Lloh3:
	adrp	x8, _QLC_DMA_CMD_BUFF_ADDR_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_DMA_CMD_BUFF_ADDR_LOW@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x0
	ldr	w2, [x21, #4]
	mov	x0, x20
	bl	_qlcnic_ind_wr
	cbnz	w0, LBB0_8
; %bb.1:
Lloh6:
	adrp	x8, _QLC_DMA_CMD_BUFF_ADDR_HI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_DMA_CMD_BUFF_ADDR_HI@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x20
	mov	w2, #0
	bl	_qlcnic_ind_wr
	cbnz	w0, LBB0_8
; %bb.2:
Lloh9:
	adrp	x23, _QLC_DMA_CMD_STATUS_CTRL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _QLC_DMA_CMD_STATUS_CTRL@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x22
	ldr	w2, [x21]
	mov	x0, x20
	bl	_qlcnic_ind_wr
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x23]
	add	x21, x8, x22
	mov	w22, #400
Lloh11:
	adrp	x23, _BIT_1@GOTPAGE
Lloh12:
	ldr	x23, [x23, _BIT_1@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_qlcnic_ind_rd
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #250
	mov	w1, #500
	bl	_usleep_range
	subs	w22, w22, #1
	b.ne	LBB0_4
; %bb.6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_DMA_ENGINE_INDEX,4,2  ; @QLC_83XX_DMA_ENGINE_INDEX
	.comm	_QLC_DMA_CMD_BUFF_ADDR_LOW,8,3  ; @QLC_DMA_CMD_BUFF_ADDR_LOW
	.comm	_QLC_DMA_CMD_BUFF_ADDR_HI,8,3   ; @QLC_DMA_CMD_BUFF_ADDR_HI
	.comm	_QLC_DMA_CMD_STATUS_CTRL,8,3    ; @QLC_DMA_CMD_STATUS_CTRL
	.comm	_BIT_1,4,2                      ; @BIT_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PEX DMA operation timed out"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_start_pex_dma
.subsections_via_symbols
