	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_subdev_set_fmt
_fimc_lite_subdev_set_fmt:              ## @fimc_lite_subdev_set_fmt
	.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, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %r9d
	movl	20(%r15), %eax
	movl	(%r15), %r8d
	movl	16(%r15), %ebx
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	pushq	%rbx
	pushq	%rax
	callq	_v4l2_dbg
	addq	$16, %rsp
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	movq	_FIMC_IO_ISP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%r12)
	jg	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_atomic_read
	movq	_FIMC_IO_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_fimc_lite_subdev_try_fmt
	movq	8(%r15), %rcx
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rsi
	movl	(%r15), %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.6:
	leaq	16(%r15), %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	___fimc_lite_subdev_get_try_fmt
	movq	%r13, %rsi
	movq	%rax, %r13
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13)
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	movl	(%r15), %eax
	movq	_FLITE_SD_PAD_SINK@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.7:
	movq	_FLITE_SD_PAD_SOURCE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	___fimc_lite_subdev_get_try_fmt
	movq	(%r13), %rcx
	movq	%rcx, (%rax)
	movl	8(%r13), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_10
LBB0_8:
	movq	_FLITE_SD_PAD_SINK@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jne	LBB0_10
## %bb.9:
	movl	20(%r15), %ecx
	movl	%ecx, 60(%r14)
	movl	16(%r15), %edx
	movl	%edx, 56(%r14)
	movq	%rax, 88(%r14)
	movl	%ecx, 84(%r14)
	movl	%edx, 80(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14)
	movups	%xmm0, 24(%r14)
	movq	80(%r14), %rax
	movq	%rax, 40(%r14)
	movl	20(%r15), %eax
	movl	%eax, 20(%r14)
	movl	16(%r15), %eax
	movl	%eax, 16(%r14)
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pad%d: code: 0x%x, %dx%d\n"

	.comm	_FIMC_IO_ISP,8,3                ## @FIMC_IO_ISP
	.comm	_FIMC_IO_DMA,8,3                ## @FIMC_IO_DMA
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_FLITE_SD_PAD_SINK,8,3          ## @FLITE_SD_PAD_SINK
	.comm	_FLITE_SD_PAD_SOURCE_DMA,4,2    ## @FLITE_SD_PAD_SOURCE_DMA
	.no_dead_strip	_fimc_lite_subdev_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_lite_subdev_set_fmt
_fimc_lite_subdev_set_fmt:              ; @fimc_lite_subdev_set_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	mov	x24, x20
	ldr	w7, [x24, #16]!
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x20]
	ldp	w6, w5, [x20, #20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_v4l2_dbg
	mov	x0, x19
	bl	_mutex_lock
	add	x23, x19, #8
	mov	x0, x23
	bl	_atomic_read
Lloh5:
	adrp	x8, _FIMC_IO_ISP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIMC_IO_ISP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, #0
	b.gt	LBB0_4
LBB0_2:
	mov	x0, x23
	bl	_atomic_read
Lloh8:
	adrp	x8, _FIMC_IO_DMA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FIMC_IO_DMA@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	add	x0, x19, #4
	bl	_vb2_is_busy
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_fimc_lite_subdev_try_fmt
	ldr	x8, [x20, #8]
Lloh14:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w2, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x22
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	___fimc_lite_subdev_get_try_fmt
	ldr	x8, [x24]
	ldr	w9, [x24, #8]
	str	w9, [x0, #8]
	str	x8, [x0]
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _FLITE_SD_PAD_SINK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FLITE_SD_PAD_SINK@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.7:
	mov	x23, x0
Lloh20:
	adrp	x8, _FLITE_SD_PAD_SOURCE_DMA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FLITE_SD_PAD_SOURCE_DMA@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	___fimc_lite_subdev_get_try_fmt
	ldr	w8, [x23, #8]
	ldr	x9, [x23]
	str	x9, [x0]
	str	w8, [x0, #8]
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _FLITE_SD_PAD_SINK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FLITE_SD_PAD_SINK@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_10
; %bb.9:
	ldp	w9, w8, [x20, #16]
	stp	w9, w8, [x19, #56]
	str	x0, [x19, #88]
	stp	w9, w8, [x19, #80]
	stp	xzr, xzr, [x19, #64]
	ldr	x8, [x19, #80]
	str	x8, [x19, #40]
	ldr	q0, [x19, #64]
	stur	q0, [x19, #24]
	ldr	d0, [x20, #16]
	str	d0, [x19, #16]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pad%d: code: 0x%x, %dx%d\n"

	.comm	_FIMC_IO_ISP,8,3                ; @FIMC_IO_ISP
	.comm	_FIMC_IO_DMA,8,3                ; @FIMC_IO_DMA
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_FLITE_SD_PAD_SINK,8,3          ; @FLITE_SD_PAD_SINK
	.comm	_FLITE_SD_PAD_SOURCE_DMA,4,2    ; @FLITE_SD_PAD_SOURCE_DMA
	.no_dead_strip	_fimc_lite_subdev_set_fmt
.subsections_via_symbols
