	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_get_sensor_frame_desc
_fimc_get_sensor_frame_desc:            ## @fimc_get_sensor_frame_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movl	%ebx, %eax
	decq	%rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rax
	jmp	LBB0_2
LBB0_3:
	movl	%ecx, %eax
	movq	%rdi, %r14
	movl	4(%rdi), %ecx
	decl	%ecx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_get_frame_desc@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_set_frame_desc@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	leaq	-32(%rbp), %r8
	movq	%r14, %rdi
	movl	%ecx, %esi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	cmpl	%ebx, -32(%rbp)
	jne	LBB0_10
## %bb.8:
	movq	-24(%rbp), %rax
	movq	(%rax), %rdx
	movq	_FIMC_MAX_JPEG_BUF_SIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jle	LBB0_11
## %bb.9:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_set_frame_desc,4,2             ## @set_frame_desc
	.comm	_get_frame_desc,4,2             ## @get_frame_desc
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FIMC_MAX_JPEG_BUF_SIZE,8,3     ## @FIMC_MAX_JPEG_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported buffer size: %u\n"

	.no_dead_strip	_fimc_get_sensor_frame_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_get_sensor_frame_desc
_fimc_get_sensor_frame_desc:            ; @fimc_get_sensor_frame_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	cbz	w2, LBB0_3
; %bb.1:
	mov	w8, w20
	sub	x8, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, #1
	b	LBB0_2
LBB0_3:
	mov	x19, x0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _get_frame_desc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _get_frame_desc@GOTPAGEOFF]
	sub	w1, w8, #1
Lloh2:
	adrp	x8, _set_frame_desc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _set_frame_desc@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x4, sp
	mov	x3, x1
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w8, [sp]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x2, [x8]
Lloh4:
	adrp	x8, _FIMC_MAX_JPEG_BUF_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FIMC_MAX_JPEG_BUF_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_8
; %bb.6:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_set_frame_desc,4,2             ; @set_frame_desc
	.comm	_get_frame_desc,4,2             ; @get_frame_desc
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FIMC_MAX_JPEG_BUF_SIZE,8,3     ; @FIMC_MAX_JPEG_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported buffer size: %u\n"

	.no_dead_strip	_fimc_get_sensor_frame_desc
.subsections_via_symbols
