	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_hmc_init_pble            ## -- Begin function i40iw_hmc_init_pble
	.p2align	4, 0x90
_i40iw_hmc_init_pble:                   ## @i40iw_hmc_init_pble
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movl	%edx, (%rsi)
	movl	%edx, %esi
	andl	$4095, %esi                     ## imm = 0xFFF
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	subl	%esi, %edi
	sarl	$3, %edi
	testl	%esi, %esi
	cmovel	%esi, %edi
	movq	8(%rax,%rcx), %rax
	movslq	%edi, %rcx
	subq	%rcx, %rax
	movq	%rax, 24(%rbx)
	leal	(%rdx,%rcx,8), %eax
	movl	%eax, 4(%rbx)
	movq	_POOL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%rbx)
	movl	$-1, %esi
	callq	_gen_pool_create
	movl	%eax, 8(%rbx)
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_pble_pool
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_destroy_pble_pool
	movq	_I40IW_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_PBLE,8,3          ## @I40IW_HMC_IW_PBLE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_POOL_SHIFT,4,2                 ## @POOL_SHIFT
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ## @I40IW_ERR_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_hmc_init_pble            ; -- Begin function i40iw_hmc_init_pble
	.p2align	2
_i40iw_hmc_init_pble:                   ; @i40iw_hmc_init_pble
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8]
	str	w9, [x1]
Lloh3:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ands	w11, w9, #0xfff
	sub	w10, w10, w11
	tst	w9, #0xfff
	asr	w10, w10, #3
	csel	w10, wzr, w10, eq
	ldr	x8, [x8, #8]
	sub	x8, x8, w10, sxtw
	str	x8, [x1, #24]
	add	w8, w9, w10, lsl #3
	str	w8, [x1, #4]
Lloh6:
	adrp	x8, _POOL_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POOL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	w0, [x1, #16]
	mov	w1, #-1
	bl	_gen_pool_create
	str	w0, [x19, #8]
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_add_pble_pool
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_i40iw_destroy_pble_pool
Lloh9:
	adrp	x8, _I40IW_ERR_NO_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IW_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_PBLE,8,3          ; @I40IW_HMC_IW_PBLE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_POOL_SHIFT,4,2                 ; @POOL_SHIFT
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ; @I40IW_ERR_NO_MEMORY
.subsections_via_symbols
