	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_initialize_hw_resources  ## -- Begin function i40iw_initialize_hw_resources
	.p2align	4, 0x90
_i40iw_initialize_hw_resources:         ## @i40iw_initialize_hw_resources
	.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, %r14
	movq	112(%rdi), %rax
	movq	(%rax), %rax
	movq	_I40IW_HMC_IW_QP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	_I40IW_HMC_IW_CQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r12d
	movq	_I40IW_HMC_IW_MR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_I40IW_HMC_IW_ARP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r15d
	movl	$1048575, (%r14)                ## imm = 0xFFFFF
	movq	_I40IW_MAX_PDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_BITS_TO_LONGS
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(,%r15,4), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BITS_TO_LONGS
	movq	%rax, %r13
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_BITS_TO_LONGS
	addl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%r13d, %eax
	movq	%r15, %r13
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax,8), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BITS_TO_LONGS
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_BITS_TO_LONGS
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r15d
	addl	%ecx, %ebx
	addl	%ebx, %eax
	leal	(%r12,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 96(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	movl	%r15d, 4(%r14)
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 8(%r14)
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, 12(%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%r14)
	movl	%r13d, 24(%r14)
	movq	%rax, 104(%r14)
	movq	_IB_DEVICE_LOCAL_DMA_LKEY@GOTPCREL(%rip), %rcx
	movq	_IB_DEVICE_MEM_WINDOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movslq	%r13d, %rcx
	movl	%edx, 28(%r14)
	leaq	(%rax,%rcx,4), %rbx
	movq	%rbx, 64(%r14)
	callq	_BITS_TO_LONGS
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, 56(%r14)
	movl	%r15d, %edi
	callq	_BITS_TO_LONGS
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, 80(%r14)
	movl	%r12d, %edi
	callq	_BITS_TO_LONGS
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, 48(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BITS_TO_LONGS
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, 72(%r14)
	movl	%r13d, %edi
	callq	_BITS_TO_LONGS
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 88(%r14)
	movq	80(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_set_bit
	movq	64(%r14), %rsi
	xorl	%edi, %edi
	callq	_set_bit
	movq	56(%r14), %rsi
	xorl	%edi, %edi
	callq	_set_bit
	movq	48(%r14), %rsi
	xorl	%edi, %edi
	callq	_set_bit
	movq	72(%r14), %rsi
	xorl	%edi, %edi
	callq	_set_bit
	movq	64(%r14), %rsi
	movl	$1, %edi
	callq	_set_bit
	movq	56(%r14), %rsi
	movl	$1, %edi
	callq	_set_bit
	movq	48(%r14), %rsi
	movl	$1, %edi
	callq	_set_bit
	movq	56(%r14), %rsi
	movl	$2, %edi
	callq	_set_bit
	movq	48(%r14), %rsi
	movl	$2, %edi
	callq	_set_bit
	leaq	40(%r14), %rdi
	callq	_spin_lock_init
	leaq	36(%r14), %rdi
	callq	_spin_lock_init
	movl	8(%r14), %edi
	callq	_get_count_order
	movl	%eax, %edi
	movl	$14, %esi
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	movb	$24, %cl
	subb	%al, %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	leal	8(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, 32(%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_QP,8,3            ## @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_CQ,8,3            ## @I40IW_HMC_IW_CQ
	.comm	_I40IW_HMC_IW_MR,8,3            ## @I40IW_HMC_IW_MR
	.comm	_I40IW_HMC_IW_ARP,8,3           ## @I40IW_HMC_IW_ARP
	.comm	_I40IW_MAX_PDS,8,3              ## @I40IW_MAX_PDS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_DEVICE_LOCAL_DMA_LKEY,4,2   ## @IB_DEVICE_LOCAL_DMA_LKEY
	.comm	_IB_DEVICE_MEM_WINDOW,4,2       ## @IB_DEVICE_MEM_WINDOW
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ## @IB_DEVICE_MEM_MGT_EXTENSIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_initialize_hw_resources  ; -- Begin function i40iw_initialize_hw_resources
	.p2align	2
_i40iw_initialize_hw_resources:         ; @i40iw_initialize_hw_resources
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #112]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _I40IW_HMC_IW_QP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40IW_HMC_IW_QP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w24, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _I40IW_HMC_IW_CQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40IW_HMC_IW_CQ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w23, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _I40IW_HMC_IW_MR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40IW_HMC_IW_MR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
Lloh9:
	adrp	x9, _I40IW_HMC_IW_ARP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I40IW_HMC_IW_ARP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	mov	w8, #1048575
	str	w8, [x0]
Lloh12:
	adrp	x8, _I40IW_MAX_PDS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40IW_MAX_PDS@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
	mov	x0, x24
	bl	_BITS_TO_LONGS
	mov	x25, x0
	mov	x0, x21
	bl	_BITS_TO_LONGS
	mov	x26, x0
	mov	x0, x23
	bl	_BITS_TO_LONGS
	add	w8, w26, w25
	add	w8, w8, w0
	lsl	w8, w8, #3
	add	w26, w8, w20, lsl #2
	mov	x0, x22
	bl	_BITS_TO_LONGS
	mov	x25, x0
	mov	x0, x20
	bl	_BITS_TO_LONGS
	add	w8, w25, w24
	add	w8, w8, w0
	add	w0, w26, w8, lsl #3
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #96]
	cbz	x0, LBB0_2
; %bb.1:
	sxtw	x8, w20
	stp	w24, w21, [x19, #4]
	str	w23, [x19, #12]
	str	x22, [x19, #16]
	str	x0, [x19, #104]
Lloh18:
	adrp	x9, _IB_DEVICE_LOCAL_DMA_LKEY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_DEVICE_LOCAL_DMA_LKEY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _IB_DEVICE_MEM_WINDOW@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IB_DEVICE_MEM_WINDOW@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh24:
	adrp	x10, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w20, w9, [x19, #24]
	add	x25, x0, x8, lsl #2
	str	x25, [x19, #64]
	mov	x0, x24
	bl	_BITS_TO_LONGS
	add	x24, x25, x0, lsl #2
	str	x24, [x19, #56]
	mov	x0, x23
	bl	_BITS_TO_LONGS
	add	x23, x24, x0, lsl #2
	str	x23, [x19, #80]
	mov	x0, x21
	bl	_BITS_TO_LONGS
	add	x21, x23, x0, lsl #2
	str	x21, [x19, #48]
	mov	x0, x22
	bl	_BITS_TO_LONGS
	add	x21, x21, x0, lsl #2
	str	x21, [x19, #72]
	mov	x0, x20
	bl	_BITS_TO_LONGS
	add	x8, x21, x0, lsl #2
	str	x8, [x19, #88]
	ldr	x1, [x19, #80]
	mov	w0, #0
	bl	_set_bit
	ldr	x1, [x19, #64]
	mov	w0, #0
	bl	_set_bit
	ldr	x1, [x19, #56]
	mov	w0, #0
	bl	_set_bit
	ldr	x1, [x19, #48]
	mov	w0, #0
	bl	_set_bit
	ldr	x1, [x19, #72]
	mov	w0, #0
	bl	_set_bit
	ldr	x1, [x19, #64]
	mov	w0, #1
	bl	_set_bit
	ldr	x1, [x19, #56]
	mov	w0, #1
	bl	_set_bit
	ldr	x1, [x19, #48]
	mov	w0, #1
	bl	_set_bit
	ldr	x1, [x19, #56]
	mov	w0, #2
	bl	_set_bit
	ldr	x1, [x19, #48]
	mov	w0, #2
	bl	_set_bit
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_spin_lock_init
	ldr	w0, [x19, #8]
	bl	_get_count_order
	mov	w1, #14
	bl	_max
	mov	x8, x0
	mov	w0, #0
	mov	w9, #24
	sub	w9, w9, w8
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
	add	w8, w8, #8
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [x19, #32]
	b	LBB0_3
LBB0_2:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_QP,8,3            ; @I40IW_HMC_IW_QP
	.comm	_I40IW_HMC_IW_CQ,8,3            ; @I40IW_HMC_IW_CQ
	.comm	_I40IW_HMC_IW_MR,8,3            ; @I40IW_HMC_IW_MR
	.comm	_I40IW_HMC_IW_ARP,8,3           ; @I40IW_HMC_IW_ARP
	.comm	_I40IW_MAX_PDS,8,3              ; @I40IW_MAX_PDS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_DEVICE_LOCAL_DMA_LKEY,4,2   ; @IB_DEVICE_LOCAL_DMA_LKEY
	.comm	_IB_DEVICE_MEM_WINDOW,4,2       ; @IB_DEVICE_MEM_WINDOW
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ; @IB_DEVICE_MEM_MGT_EXTENSIONS
.subsections_via_symbols
