	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i3c_generic_ibi_alloc_pool     ## -- Begin function i3c_generic_ibi_alloc_pool
	.p2align	4, 0x90
_i3c_generic_ibi_alloc_pool:            ## @i3c_generic_ibi_alloc_pool
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	28(%rax), %rdi
	callq	_spin_lock_init
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	4(%r15), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	(%rbx), %edx
	callq	_kcalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_11
LBB0_5:
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.6:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r12,%rbx), %rdi
	addq	$-8, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	incl	(%r13)
	incq	%r14
	movl	(%r15), %eax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jae	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r12
	leaq	(%r12,%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i3c_master_init_ibi_slot
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	imull	%r14d, %eax
	addq	8(%r13), %rax
	movq	%rax, (%r12,%rbx)
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_i3c_generic_ibi_free_pool
LBB0_12:
	negl	%r14d
	movl	%r14d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_10:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i3c_generic_ibi_alloc_pool     ; -- Begin function i3c_generic_ibi_alloc_pool
	.p2align	2
_i3c_generic_ibi_alloc_pool:            ; @i3c_generic_ibi_alloc_pool
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x0, x0, #28
	bl	_spin_lock_init
	add	x22, x21, #4
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	add	x0, x21, #24
	bl	_INIT_LIST_HEAD
	ldr	w0, [x19]
	ldr	w2, [x23]
	mov	w1, #16
	bl	_kcalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w1, [x19, #4]
	cbz	w1, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	w2, [x23]
	bl	_kcalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.5:
	mov	x24, #0
	mov	w25, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x0, x23, #8
	mov	x1, x22
	bl	_list_add_tail
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	add	x24, x24, #1
	ldr	w8, [x19]
	add	x25, x25, #16
	cmp	x24, x8
	b.hs	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, #16]
	add	x23, x26, x25
	mov	x0, x20
	mov	x1, x23
	bl	_i3c_master_init_ibi_slot
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21, #8]
	mul	w8, w8, w24
	add	x8, x9, x8
	str	x8, [x26, x25]
	b	LBB0_6
LBB0_9:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_i3c_generic_ibi_free_pool
LBB0_11:
	neg	w0, w19
	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
	b	_ERR_PTR
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
