	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_ceu_get_formats
_sh_mobile_ceu_get_formats:             ## @sh_mobile_ceu_get_formats
	.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	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	callq	_sh_mobile_ceu_try_bus_param
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	testl	%r12d, %r12d
	jne	LBB0_8
LBB0_7:
	movq	$0, (%rax)
LBB0_8:
	movq	(%r15), %rcx
	movslq	%r12d, %rdx
	leaq	(%rdx,%rdx,2), %r13
	movl	(%rcx,%r13,4), %ecx
	andl	$-4, %ecx
	xorl	%r12d, %r12d
	cmpl	$128, %ecx
	jne	LBB0_15
## %bb.9:
	cmpq	$0, (%rax)
	je	LBB0_10
LBB0_15:
	incl	%r12d
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_16:
	movq	(%r15), %rax
	leaq	(%rax,%r13,4), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rcx, 8(%rbx)
	movl	8(%rax,%r13,4), %ecx
	movl	%ecx, (%rbx)
	movl	4(%rax,%r13,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_17
LBB0_1:
	xorl	%r12d, %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 8(%r15)
	testl	%r12d, %r12d
	jne	LBB0_8
	jmp	LBB0_7
LBB0_10:
	movq	_sh_mobile_ceu_formats@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r12d
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.11:
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.12:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %eax
	shlq	$2, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_sh_mobile_ceu_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r12), %rcx
	movq	%rcx, 16(%rbx)
	movq	(%r15), %rcx
	leaq	(%rcx,%r13,4), %rdx
	movq	%rdx, 8(%rbx)
	movl	8(%rcx,%r13,4), %edx
	movl	%edx, (%rbx)
	addq	$24, %rbx
	movl	4(%rax,%r12), %edx
	movl	4(%rcx,%r13,4), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	addq	$12, %r12
	cmpq	%r12, %r14
	jne	LBB0_13
## %bb.14:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sh_mobile_ceu_formats,8,3      ## @sh_mobile_ceu_formats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Providing format %s using %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Providing format %s in pass-through mode\n"

	.no_dead_strip	_sh_mobile_ceu_get_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_ceu_get_formats
_sh_mobile_ceu_get_formats:             ; @sh_mobile_ceu_get_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	bl	_sh_mobile_ceu_try_bus_param
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.2:
	cbnz	w22, LBB0_4
LBB0_3:
	str	xzr, [x0]
LBB0_4:
	ldr	x8, [x21]
	sxtw	x24, w22
	mov	w9, #12
	smull	x9, w22, w9
	ldr	w8, [x8, x9]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x0]
	cbz	x8, LBB0_13
LBB0_6:
	mov	w22, #0
LBB0_7:
	add	w22, w22, #1
	cbz	x19, LBB0_10
LBB0_8:
	ldr	x8, [x21]
	mov	w9, #12
	madd	x8, x24, x9, x8
	stp	x8, x8, [x19, #8]
	ldp	w2, w9, [x8, #4]
	str	w9, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.12:
	str	x0, [x21, #8]
	cbnz	w22, LBB0_4
	b	LBB0_3
LBB0_13:
Lloh5:
	adrp	x25, _sh_mobile_ceu_formats@GOTPAGE
Lloh6:
	ldr	x25, [x25, _sh_mobile_ceu_formats@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x0]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	mov	x22, x0
	cbz	x19, LBB0_7
; %bb.14:
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.15:
	mov	x26, #0
	mov	w27, #12
	umull	x28, w22, w27
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x8, x26
	ldr	x9, [x21]
	madd	x9, x24, x27, x9
	stp	x9, x8, [x19, #8]
	ldp	w9, w10, [x9, #4]
	str	w10, [x19], #24
	ldr	w2, [x8, #4]
	str	x9, [sp]
	mov	x0, x20
	mov	x1, x23
	bl	_dev_dbg
	add	x26, x26, #12
	cmp	x28, x26
	b.ne	LBB0_16
; %bb.17:
	add	w22, w22, #1
	b	LBB0_8
LBB0_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sh_mobile_ceu_formats,8,3      ; @sh_mobile_ceu_formats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Providing format %s using %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Providing format %s in pass-through mode\n"

	.no_dead_strip	_sh_mobile_ceu_get_formats
.subsections_via_symbols
