	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_init_hw
_qedr_init_hw:                          ## @qedr_init_hw
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %r13
	movq	56(%r12), %rdi
	addq	%rbx, %rdi
	callq	_qed_chain_get_page_cnt
	movl	%eax, 8(%r13,%rbx,4)
	movq	56(%r12), %rdi
	addq	%rbx, %rdi
	callq	_qed_chain_get_pbl_phys
	movq	%rax, (%r13,%rbx,4)
	incq	%r15
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_5:
	movq	_qedr_affiliated_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_qedr_unaffiliated_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r12, -56(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, 24(%r14)
	movq	_QED_RDMA_CQ_MODE_32_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	40(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 16(%r14)
	movl	%ecx, 48(%r12)
	movq	8(%r14), %rdi
	movl	(%rax), %esi
	callq	_ether_addr_copy
	movq	24(%r12), %rax
	movl	32(%r12), %edi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	24(%r12), %rax
	movl	20(%r12), %edi
	leaq	-80(%rbp), %rsi
	callq	*8(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_7:
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 4(%r12)
	movq	%r12, %rdi
	callq	_qedr_set_device_attr
	movl	%eax, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_DP_ERR
LBB0_12:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qedr_affiliated_event,4,2      ## @qedr_affiliated_event
	.comm	_qedr_unaffiliated_event,4,2    ## @qedr_unaffiliated_event
	.comm	_QED_RDMA_CQ_MODE_32_BITS,4,2   ## @QED_RDMA_CQ_MODE_32_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Init HW Failed rc = %d\n"

	.no_dead_strip	_qedr_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_init_hw
_qedr_init_hw:                          ; @qedr_init_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x19]
	str	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x20, #32]
	ldr	x8, [x19, #56]
	add	x0, x8, x22
	bl	_qed_chain_get_page_cnt
	add	x8, x24, x22, lsl #2
	str	w0, [x8, #8]
	ldr	x8, [x19, #56]
	add	x0, x8, x22
	bl	_qed_chain_get_pbl_phys
	str	x0, [x24, x21]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #4
	add	x21, x21, #16
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
Lloh3:
	adrp	x8, _qedr_affiliated_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qedr_affiliated_event@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _qedr_unaffiliated_event@GOTPAGE
Lloh7:
	ldr	x9, [x9, _qedr_unaffiliated_event@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	str	x19, [sp]
	mov	x8, sp
	str	x8, [x20, #24]
Lloh9:
	adrp	x8, _QED_RDMA_CQ_MODE_32_BITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_RDMA_CQ_MODE_32_BITS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldr	x8, [x19, #40]
	ldr	w9, [x8, #4]
	str	w9, [x20, #16]
	str	w9, [x19, #48]
	ldr	x0, [x20, #8]
	ldr	w1, [x8]
	bl	_ether_addr_copy
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x19, #32]
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #20]
	add	x1, sp, #16
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_8:
	ldr	q0, [sp, #16]
	stur	q0, [x19, #4]
	mov	x0, x19
	bl	_qedr_set_device_attr
	mov	x21, x0
LBB0_9:
	mov	x0, x20
	bl	_kfree
	cbz	w21, LBB0_11
LBB0_10:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DP_ERR
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qedr_affiliated_event,4,2      ; @qedr_affiliated_event
	.comm	_qedr_unaffiliated_event,4,2    ; @qedr_unaffiliated_event
	.comm	_QED_RDMA_CQ_MODE_32_BITS,4,2   ; @QED_RDMA_CQ_MODE_32_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Init HW Failed rc = %d\n"

	.no_dead_strip	_qedr_init_hw
.subsections_via_symbols
