	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_bp_pages
_add_bp_pages:                          ## @add_bp_pages
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	48(%rdx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	32(%rdx), %rbx
	movq	40(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r12
	movq	16(%rdx), %r13
	movl	(%rdi), %edi
	movl	(%rdx), %edx
	movq	%rbx, %rsi
	callq	_i40iw_get_vmalloc_mem
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_I40IW_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_20
LBB0_2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	(%r15), %edi
	movl	24(%r14), %edx
	movq	_I40IW_SD_TYPE_PAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I40IW_HMC_DIRECT_BP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_i40iw_add_sd_table_entry
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_3
LBB0_12:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_i40iw_free_vmalloc_mem
LBB0_20:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 8(%r15)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_4
LBB0_7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_16
## %bb.8:
	movq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	xorl	%r15d, %r15d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_i40iw_pr_err
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %eax
	movl	%eax, -132(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -144(%rbp)
	movq	8(%r13), %rax
	movq	%rcx, %r12
	addq	%rcx, %rax
	cmpl	$0, (%rax,%r15,4)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	leaq	-144(%rbp), %rcx
	callq	_i40iw_add_pd_table_entry
	testl	%eax, %eax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_16:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, 8(%r15)
	je	LBB0_17
LBB0_19:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_4:
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rdi), %esi
	callq	_fpm_to_idx
	movl	(%r14), %r8d
	movq	_PBLE_512_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r8d, %ecx
	callq	_i40iw_vchnl_vf_add_hmc_objs
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_17:
	movq	8(%r14), %rax
	movq	%rax, -128(%rbp)
	movl	$0, -120(%rbp)
	movq	_PBLE_PER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movl	(%r13), %eax
	movl	%eax, -112(%rbp)
	movl	24(%r14), %eax
	movl	%eax, -116(%rbp)
	movl	4(%r15), %edi
	leaq	-128(%rbp), %rsi
	movl	$1, %edx
	callq	_i40iw_hw_manage_vf_pble_bp
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_i40iw_pr_err
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ## @I40IW_ERR_NO_MEMORY
	.comm	_I40IW_SD_TYPE_PAGED,4,2        ## @I40IW_SD_TYPE_PAGED
	.comm	_I40IW_HMC_DIRECT_BP_SIZE,4,2   ## @I40IW_HMC_DIRECT_BP_SIZE
	.comm	_I40IW_HMC_IW_PBLE,4,2          ## @I40IW_HMC_IW_PBLE
	.comm	_PBLE_512_SHIFT,4,2             ## @PBLE_512_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocate PBLEs in the PF.  Error %i\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"pd entry is valid expecting to be invalid\n"

	.comm	_PBLE_PER_PAGE,4,2              ## @PBLE_PER_PAGE
L_.str.2:                               ## @.str.2
	.asciz	"CQP manage VF PBLE BP failed.  %i\n"

	.no_dead_strip	_add_bp_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_bp_pages
_add_bp_pages:                          ; @add_bp_pages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x23, x27, [x2, #40]
	ldr	x19, [x2, #32]
	ldp	x28, x24, [x2, #8]
	ldr	w0, [x0]
	ldr	w2, [x2]
	mov	x1, x19
	bl	_i40iw_get_vmalloc_mem
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _I40IW_ERR_NO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x20]
	ldr	w2, [x22, #24]
Lloh3:
	adrp	x8, _I40IW_SD_TYPE_PAGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_SD_TYPE_PAGED@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _I40IW_HMC_DIRECT_BP_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_HMC_DIRECT_BP_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x1, x23
	bl	_i40iw_add_sd_table_entry
	mov	x26, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_i40iw_free_vmalloc_mem
LBB0_4:
	mov	x0, x26
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_15
LBB0_6:
	stp	x21, x23, [sp, #8]              ; 16-byte Folded Spill
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.7:
	mov	x21, #0
	ldr	x25, [x19, #16]
	lsl	x28, x28, #2
Lloh9:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_i40iw_pr_err
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x9, x21, #2
	ldr	w8, [x8, x9]
	ldr	w10, [x23]
	stp	w10, w8, [sp, #56]
	str	x25, [sp, #48]
	ldr	x8, [x27, #8]
	add	x8, x8, x28
	ldr	w8, [x8, x9]
	cbnz	w8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x20]
	add	x3, sp, #48
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x24
	bl	_i40iw_add_pd_table_entry
	cbnz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x25, x25, x8, lsl #2
	b	LBB0_9
LBB0_13:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_17
LBB0_14:
	mov	w26, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_4
LBB0_15:
Lloh13:
	adrp	x8, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	ldr	w1, [x21]
	mov	x0, x21
	bl	_fpm_to_idx
	mov	x2, x0
	ldr	w8, [x22]
Lloh16:
	adrp	x9, _PBLE_512_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PBLE_512_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	mov	x0, x20
	mov	x1, x25
	bl	_i40iw_vchnl_vf_add_hmc_objs
	cbz	w0, LBB0_6
; %bb.16:
	mov	x26, x0
	str	x26, [sp]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
	b	LBB0_3
LBB0_17:
	ldr	x8, [x22, #8]
	str	x8, [sp, #24]
Lloh21:
	adrp	x8, _PBLE_PER_PAGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PBLE_PER_PAGE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	wzr, [sp, #32]
	str	w8, [sp, #44]
	ldr	w8, [x27]
	ldr	w9, [x22, #24]
	stp	w9, w8, [sp, #36]
	ldr	w0, [x20, #4]
	add	x1, sp, #24
	mov	w2, #1
	bl	_i40iw_hw_manage_vf_pble_bp
	cbz	w0, LBB0_14
; %bb.18:
	mov	x26, x0
	str	x26, [sp]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_i40iw_pr_err
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	b	LBB0_3
LBB0_19:
	mov	x26, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ; @I40IW_ERR_NO_MEMORY
	.comm	_I40IW_SD_TYPE_PAGED,4,2        ; @I40IW_SD_TYPE_PAGED
	.comm	_I40IW_HMC_DIRECT_BP_SIZE,4,2   ; @I40IW_HMC_DIRECT_BP_SIZE
	.comm	_I40IW_HMC_IW_PBLE,4,2          ; @I40IW_HMC_IW_PBLE
	.comm	_PBLE_512_SHIFT,4,2             ; @PBLE_512_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocate PBLEs in the PF.  Error %i\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"pd entry is valid expecting to be invalid\n"

	.comm	_PBLE_PER_PAGE,4,2              ; @PBLE_PER_PAGE
l_.str.2:                               ; @.str.2
	.asciz	"CQP manage VF PBLE BP failed.  %i\n"

	.no_dead_strip	_add_bp_pages
.subsections_via_symbols
