	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_camera_get_formats
_pxa_camera_get_formats:                ## @pxa_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
	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, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_soc_camera_to_subdev
	movq	8(%rbx), %r12
	movq	_video@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_enum_mbus_fmt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %r8
	movq	%rax, %rdi
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	xorl	%r13d, %r13d
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	callq	_soc_mbus_get_fmtdesc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r12
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_pxa_camera_try_bus_param
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, (%rbx)
LBB0_6:
	movl	-44(%rbp), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_14
## %bb.7:
	cmpl	$3, %eax
	je	LBB0_17
## %bb.8:
	movl	$1, %r13d
	testq	%r15, %r15
	je	LBB0_12
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movl	(%r12), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, 8(%r15)
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_11:
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_dev_err
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_14:
	movq	%r12, %rdi
	callq	_pxa_camera_packing_supported
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movl	$1, %r13d
	testq	%r15, %r15
	je	LBB0_12
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_17:
	testq	%r15, %r15
	je	LBB0_19
## %bb.18:
	movq	_pxa_camera_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$131, (%r15)
	addq	$16, %r15
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$131, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$2, %r13d
	jmp	LBB0_9
LBB0_19:
	movl	$2, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_video,4,2                      ## @video
	.comm	_enum_mbus_fmt,4,2              ## @enum_mbus_fmt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid format code #%u: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pxa_camera_formats,8,3         ## @pxa_camera_formats
L_.str.1:                               ## @.str.1
	.asciz	"Providing format %s using code %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Providing format %s packed\n"

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

	.no_dead_strip	_pxa_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 pxa_camera_get_formats
_pxa_camera_get_formats:                ; @pxa_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	x23, x1
	mov	x22, x0
	bl	_soc_camera_to_subdev
	ldr	x20, [x22, #8]
Lloh0:
	adrp	x8, _video@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _enum_mbus_fmt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _enum_mbus_fmt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	x3, x23
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_soc_mbus_get_fmtdesc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x21, x0
	ldr	w1, [x0, #4]
	mov	x0, x22
	bl	_pxa_camera_try_bus_param
	tbnz	w0, #31, LBB0_12
; %bb.3:
	ldr	x8, [x22]
	cbnz	x8, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.5:
	str	x0, [x22]
LBB0_6:
	ldr	w8, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_15
; %bb.7:
	cmp	w8, #3
	b.eq	LBB0_18
; %bb.8:
	mov	w22, #1
	cbz	x19, LBB0_13
LBB0_9:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	ldr	w2, [x21]
	mov	x0, x20
	bl	_dev_dbg
	str	x21, [x19, #8]
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_13
LBB0_11:
	ldr	w3, [sp, #12]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
LBB0_12:
	mov	w22, #0
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
LBB0_14:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_15:
	mov	x0, x21
	bl	_pxa_camera_packing_supported
	cbz	w0, LBB0_12
; %bb.16:
	mov	w22, #1
	cbz	x19, LBB0_13
; %bb.17:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_18:
	cbz	x19, LBB0_20
; %bb.19:
Lloh18:
	adrp	x8, _pxa_camera_formats@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pxa_camera_formats@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w9, #131
	str	w9, [x19], #16
	ldr	w2, [x8]
	str	x9, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w22, #2
	b	LBB0_9
LBB0_20:
	mov	w22, #2
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_video,4,2                      ; @video
	.comm	_enum_mbus_fmt,4,2              ; @enum_mbus_fmt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid format code #%u: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pxa_camera_formats,8,3         ; @pxa_camera_formats
l_.str.1:                               ; @.str.1
	.asciz	"Providing format %s using code %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Providing format %s packed\n"

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

	.no_dead_strip	_pxa_camera_get_formats
.subsections_via_symbols
