	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fimc_capture_set_format
___fimc_capture_set_format:             ## @__fimc_capture_set_format
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	$0, -48(%rbp)
	addq	$4, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	32(%r15), %rbx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	___video_try_or_set_format
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_fimc_alpha_ctrl_update
	movq	32(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.4:
	movq	8(%r14), %rcx
	movq	40(%r15), %rdx
	movq	48(%r15), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rdi,8), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	movl	(%rcx,%rdi,8), %ebx
	movl	%ebx, (%rdx,%rdi,4)
	incq	%rdi
	movslq	(%rax), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_5
LBB0_6:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_set_frame_bounds
	movq	_FIMC_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_set_frame_crop
LBB0_8:
	movq	32(%r15), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_fimc_capture_mark_jpeg_xfer
	cmpl	$0, (%r13)
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r15)
	addq	$8, %r15
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_set_frame_bounds
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_set_frame_crop
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_FIMC_COMPOSE,4,2               ## @FIMC_COMPOSE
	.no_dead_strip	___fimc_capture_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fimc_capture_set_format
___fimc_capture_set_format:             ; @__fimc_capture_set_format
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	str	xzr, [sp, #8]
	add	x0, x0, #4
	bl	_vb2_is_busy
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_2:
	mov	x0, x21
	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_3:
	add	x23, x19, #32
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	mov	x4, x23
	bl	___video_try_or_set_format
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.4:
	mov	x0, x19
	bl	_fimc_alpha_ctrl_update
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x9, #0
	ldr	x12, [x20, #8]
	ldp	x11, x10, [x19, #40]
	add	x12, x12, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	lsl	x14, x9, #2
	str	w13, [x10, x14]
	ldur	w13, [x12, #-4]
	str	w13, [x11, x14]
	add	x9, x9, #1
	ldrsw	x13, [x8]
	add	x12, x12, #8
	cmp	x9, x13
	b.lt	LBB0_6
LBB0_7:
	ldp	w2, w1, [x20]
	mov	x0, x23
	bl	_set_frame_bounds
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _FIMC_COMPOSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FIMC_COMPOSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	ldp	w4, w3, [x20]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_set_frame_crop
LBB0_9:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_fimc_capture_mark_jpeg_xfer
	ldr	w8, [x22]
	cbnz	w8, LBB0_2
; %bb.10:
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]!
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_set_frame_bounds
	ldp	w4, w3, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_set_frame_crop
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_FIMC_COMPOSE,4,2               ; @FIMC_COMPOSE
	.no_dead_strip	___fimc_capture_set_format
.subsections_via_symbols
