	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_create
_eb_create:                             ## @eb_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	_I915_EXEC_HANDLE_LUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rdi), %edi
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.8:
	negl	%edi
	movl	%edi, 4(%r14)
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	callq	_ilog2
	movl	%eax, %ebx
	incl	%ebx
	movq	___GFP_NORETRY@GOTPCREL(%rip), %r12
	movq	___GFP_NOWARN@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	orl	(%r12), %esi
	cmpl	$2, %ebx
	cmovbl	%r15d, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$4, %edi
	movl	%ebx, %ecx
	shlq	%cl, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kzalloc
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	jne	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
LBB0_5:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, 4(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_EXEC_HANDLE_LUT,4,2       ## @I915_EXEC_HANDLE_LUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_eb_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_create
_eb_create:                             ; @eb_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x8, _I915_EXEC_HANDLE_LUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_EXEC_HANDLE_LUT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	w8, [x0]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	neg	w8, w8
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_2:
	mov	x0, x8
	bl	_ilog2
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	add	w20, w0, #1
Lloh5:
	adrp	x22, ___GFP_NORETRY@GOTPAGE
Lloh6:
	ldr	x22, [x22, ___GFP_NORETRY@GOTPAGEOFF]
Lloh7:
	adrp	x23, ___GFP_NOWARN@GOTPAGE
Lloh8:
	ldr	x23, [x23, ___GFP_NOWARN@GOTPAGEOFF]
	mov	w24, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w9, w10, w9
	cmp	w20, #1
	csel	w9, w9, wzr, hi
	orr	w1, w9, w8
	lsl	x0, x24, x20
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_kzalloc
	str	w0, [x19, #8]
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_3
LBB0_5:
	cmp	w20, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	str	w20, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_EXEC_HANDLE_LUT,4,2       ; @I915_EXEC_HANDLE_LUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_eb_create
.subsections_via_symbols
