	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx3_camera_get_formats
_mx3_camera_get_formats:                ## @mx3_camera_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	8(%rdi), %edi
	callq	_to_soc_camera_host
	movq	(%r13), %rcx
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,2), %rbx
	movl	(%rcx,%rbx,4), %r15d
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_buswidth_supported
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_mx3_camera_try_bus_param
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	(%r13), %rax
	movl	4(%rax,%rbx,4), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_9
## %bb.4:
	testq	%r14, %r14
	je	LBB0_13
## %bb.5:
	movq	_mx3_camera_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, %rcx
	jmp	LBB0_8
LBB0_6:
	testq	%r14, %r14
	je	LBB0_13
## %bb.7:
	movq	_mx3_camera_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	12(%rcx), %rdx
LBB0_8:
	movq	%rdx, 16(%r14)
	leaq	(%rax,%rbx,4), %rdx
	movq	%rdx, 8(%r14)
	movl	%r15d, (%r14)
	addq	$24, %r14
	movl	8(%r13), %edi
	movl	8(%rcx), %edx
	movl	8(%rax,%rbx,4), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$2, %r12d
	jmp	LBB0_10
LBB0_9:
	movl	$1, %r12d
	testq	%r14, %r14
	je	LBB0_11
LBB0_10:
	movq	(%r13), %rax
	leaq	(%rax,%rbx,4), %rcx
	movq	%rcx, 16(%r14)
	movq	%rcx, 8(%r14)
	movl	%r15d, (%r14)
	movl	8(%r13), %edi
	movl	8(%rax,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_13:
	movl	$2, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mx3_camera_formats,8,3         ## @mx3_camera_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	_mx3_camera_get_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx3_camera_get_formats
_mx3_camera_get_formats:                ; @mx3_camera_get_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_soc_camera_host
	ldr	x8, [x20]
	mov	w9, #12
	smull	x9, w22, w9
	ldr	w21, [x8, x9]
	mov	x1, x21
	bl	_buswidth_supported
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_mx3_camera_try_bus_param
	tbnz	w0, #31, LBB0_6
; %bb.2:
	sxtw	x23, w22
	ldr	x8, [x20]
	mov	w9, #12
	madd	x9, x23, x9, x8
	ldr	w9, [x9, #4]
	cmp	w9, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_10
; %bb.4:
	cbz	x19, LBB0_12
; %bb.5:
Lloh0:
	adrp	x9, _mx3_camera_formats@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mx3_camera_formats@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	mov	x9, x10
	b	LBB0_9
LBB0_6:
	mov	w22, #0
	b	LBB0_13
LBB0_7:
	cbz	x19, LBB0_12
; %bb.8:
Lloh3:
	adrp	x9, _mx3_camera_formats@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mx3_camera_formats@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x10, x9, #12
LBB0_9:
	mov	w11, #12
	madd	x8, x23, x11, x8
	stp	x8, x10, [x19, #8]
	str	w21, [x19], #24
	ldr	w0, [x20, #8]
	ldr	w2, [x9, #8]
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w22, #2
	b	LBB0_11
LBB0_10:
	mov	w22, #1
	cbz	x19, LBB0_13
LBB0_11:
	ldr	x8, [x20]
	mov	w9, #12
	madd	x8, x23, x9, x8
	stp	x8, x8, [x19, #8]
	str	w21, [x19]
	ldr	w0, [x20, #8]
	ldr	w2, [x8, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_13
LBB0_12:
	mov	w22, #2
LBB0_13:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mx3_camera_formats,8,3         ; @mx3_camera_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	_mx3_camera_get_formats
.subsections_via_symbols
