	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_get_layer_fourcc_list   ## -- Begin function komeda_get_layer_fourcc_list
	.p2align	4, 0x90
_komeda_get_layer_fourcc_list:          ## @komeda_get_layer_fourcc_list
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	(%r15), %r9d
	testl	%r9d, %r9d
	jle	LBB0_2
## %bb.3:
	movq	8(%r15), %rsi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r8d, %rcx
	incl	%r8d
	movq	%rbx, (%rax,%rcx,8)
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%r9, %rdi
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rdi, %rdx
	shlq	$4, %rdx
	testq	%r12, (%rsi,%rdx)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rsi,%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%edx, %edx
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	leaq	-1(%rdx), %rcx
	cmpq	%rbx, -8(%rax,%rdx,8)
	movq	%rcx, %rdx
	jne	LBB0_7
	jmp	LBB0_10
LBB0_2:
	xorl	%r8d, %r8d
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movslq	%r8d, %rcx
	movq	%rcx, (%r14)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_get_layer_fourcc_list   ; -- Begin function komeda_get_layer_fourcc_list
	.p2align	2
_komeda_get_layer_fourcc_list:          ; @komeda_get_layer_fourcc_list
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_13
; %bb.1:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x10, #0
	mov	w8, #0
	ldr	x11, [x21, #8]
	sub	x12, x0, #8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x13, [x0, w8, sxtw #3]
	add	w8, w8, #1
                                        ; kill: def $w8 killed $w8 def $x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	lsl	x13, x10, #4
	ldr	x13, [x11, x13]
	tst	x13, x20
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x11, x10, lsl #4
	ldr	x13, [x13, #8]
	cbz	x13, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w14, w8
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w14, #1
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x15, [x12, x14, lsl #3]
	sub	x14, x14, #1
	cmp	x15, x13
	b.ne	LBB0_8
	b	LBB0_4
LBB0_10:
	mov	w8, #0
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	sxtw	x8, w8
	str	x8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
