	.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, %r14
	movl	%esi, %ebx
	callq	_v4l2_dev_to_pcdev
	movq	%rax, %r13
	movl	%ebx, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_enum_mbus_code@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_sensor_call
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	-52(%rbp), %edi
	callq	_pxa_mbus_get_fmtdesc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_pxa_camera_try_bus_param
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movl	-52(%rbp), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.4:
	cmpl	$3, %eax
	je	LBB0_13
## %bb.5:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_9
LBB0_6:
	leaq	L_.str.2(%rip), %rbx
LBB0_7:
	movq	%r13, %rdi
	callq	_pcdev_to_dev
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, 8(%r14)
	movl	-52(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	callq	_pcdev_to_dev
	movl	-52(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_pxa_camera_packing_supported
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_9
## %bb.12:
	leaq	L_.str.3(%rip), %rbx
	jmp	LBB0_7
LBB0_13:
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	movq	_pxa_camera_formats@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	$131, (%r14)
	addq	$16, %r14
	movq	%r13, %rdi
	callq	_pcdev_to_dev
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	movl	-52(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$2, %r15d
	jmp	LBB0_6
LBB0_15:
	movl	$2, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ## @pad
	.comm	_enum_mbus_code,4,2             ## @enum_mbus_code
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid format code #%u: %d\n"

	.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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_v4l2_dev_to_pcdev
	mov	x20, x0
	stp	w22, wzr, [sp, #16]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _pad@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _enum_mbus_code@GOTPAGE
Lloh7:
	ldr	x8, [x8, _enum_mbus_code@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, sp, #16
	mov	x3, #0
	bl	_sensor_call
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w0, [sp, #20]
	bl	_pxa_mbus_get_fmtdesc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	w1, [x0, #4]
	mov	x0, x20
	bl	_pxa_camera_try_bus_param
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [sp, #20]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.4:
	cmp	w8, #3
	b.eq	LBB0_14
; %bb.5:
	mov	w22, #1
	cbz	x19, LBB0_10
LBB0_6:
Lloh9:
	adrp	x23, l_.str.2@PAGE
Lloh10:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x20
	bl	_pcdev_to_dev
	ldr	w2, [x21]
	mov	x1, x23
	bl	_dev_dbg
	str	x21, [x19, #8]
	ldr	w8, [sp, #20]
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_pcdev_to_dev
	ldr	w3, [sp, #20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x0, x21
	bl	_pxa_camera_packing_supported
	cbz	w0, LBB0_9
; %bb.12:
	mov	w22, #1
	cbz	x19, LBB0_10
; %bb.13:
Lloh13:
	adrp	x23, l_.str.3@PAGE
Lloh14:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
Lloh15:
	adrp	x22, _pxa_camera_formats@GOTPAGE
Lloh16:
	ldr	x22, [x22, _pxa_camera_formats@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x19, #8]
	mov	w8, #131
	str	w8, [x19], #16
	mov	x0, x20
	bl	_pcdev_to_dev
	ldr	x8, [x22]
	ldr	w2, [x8]
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w22, #2
	b	LBB0_6
LBB0_16:
	mov	w22, #2
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ; @pad
	.comm	_enum_mbus_code,4,2             ; @enum_mbus_code
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid format code #%u: %d\n"

	.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
