	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_camera_init_user_formats
_soc_camera_init_user_formats:          ## @soc_camera_init_user_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_soc_camera_to_subdev
	movq	%rax, %r15
	leaq	24(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %edi
	callq	_to_soc_camera_host
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	movq	_video@GOTPCREL(%rip), %r13
	movq	_enum_mbus_fmt@GOTPCREL(%rip), %rcx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	(%r13), %esi
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rcx, %r12
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_v4l2_subdev_call
	movq	%r12, %rcx
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ebx, %r13d
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.4:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*%rax
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_22
## %bb.5:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	movl	%r15d, %r13d
	addl	%eax, %r13d
	cmpl	%r14d, %ebx
	je	LBB0_7
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	*(%rax)
	movl	%eax, %r15d
	incl	%r14d
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_22
LBB0_7:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.11:
	leal	(,%r13,4), %edi
	callq	_vmalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	%r13d, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dev_dbg
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.14:
	movq	%r12, %rcx
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	leaq	-44(%rbp), %r8
	callq	_v4l2_subdev_call
	movl	-44(%rbp), %edi
	callq	_soc_mbus_get_fmtdesc
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx,%rbx,8)
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rcx
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %edx
	shlq	$3, %rdx
	addq	8(%r15), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*%rax
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	addl	%r15d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_20:
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	8(%rax), %rdi
	callq	_vfree
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_video,4,2                      ## @video
	.comm	_enum_mbus_fmt,4,2              ## @enum_mbus_fmt
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found %d supported formats.\n"

	.no_dead_strip	_soc_camera_init_user_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_camera_init_user_formats
_soc_camera_init_user_formats:          ; @soc_camera_init_user_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, x0
	bl	_soc_camera_to_subdev
	mov	x20, x0
	mov	x22, x19
	ldr	w0, [x22, #24]!
	bl	_to_soc_camera_host
	mov	x21, x0
	mov	w23, #-1
Lloh0:
	adrp	x27, _video@GOTPAGE
Lloh1:
	ldr	x27, [x27, _video@GOTPAGEOFF]
Lloh2:
	adrp	x28, _enum_mbus_fmt@GOTPAGE
Lloh3:
	ldr	x28, [x28, _enum_mbus_fmt@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w1, [x27]
	ldr	w2, [x28]
	add	x4, sp, #12
	mov	x0, x20
	mov	x3, x23
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_1
; %bb.2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x24, x23
	cbz	x8, LBB0_8
; %bb.3:
	cbz	w23, LBB0_17
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	blr	x8
	mov	x25, x0
	tbnz	w0, #31, LBB0_21
; %bb.5:
	mov	w24, #0
	mov	w26, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w25, w24
	cmp	w23, w26
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x26
	mov	x2, #0
	blr	x8
	mov	x25, x0
	add	w26, w26, #1
	tbz	w0, #31, LBB0_6
	b	LBB0_21
LBB0_8:
	cbz	w24, LBB0_17
; %bb.9:
	lsl	w0, w24, #2
	bl	_vmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.10:
	str	w24, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_dev_dbg
	cbz	w23, LBB0_18
; %bb.11:
	mov	w22, #0
	mov	x24, #0
	mov	w26, #0
	lsl	x23, x23, #3
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x27]
	ldr	w2, [x28]
	add	x4, sp, #12
	mov	x0, x20
	mov	x3, x22
	bl	_v4l2_subdev_call
	ldr	w0, [sp, #12]
	bl	_soc_mbus_get_fmtdesc
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	str	w0, [x8, #4]
	ldr	w9, [sp, #12]
	str	w9, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #8
	add	w22, w22, #1
	cmp	x23, x24
	b.eq	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19, #8]
	add	x2, x9, w26, uxtw #3
	mov	x0, x19
	mov	x1, x22
	blr	x8
	mov	x25, x0
	tbnz	w0, #31, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w26, w25, w26
	b	LBB0_13
LBB0_17:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w25, #0
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
	b	LBB0_21
LBB0_19:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_21:
	mov	x0, x25
	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_22:
	str	wzr, [x19]
	ldr	x0, [x19, #8]
	bl	_vfree
	b	LBB0_21
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_video,4,2                      ; @video
	.comm	_enum_mbus_fmt,4,2              ; @enum_mbus_fmt
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found %d supported formats.\n"

	.no_dead_strip	_soc_camera_init_user_formats
.subsections_via_symbols
