	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5c73m3_s_stream
___s5c73m3_s_stream:                    ## @__s5c73m3_s_stream
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	testl	%edx, %edx
	je	LBB0_8
## %bb.1:
	cmpq	$0, 24(%r12)
	je	LBB0_8
## %bb.2:
	movq	(%r12), %rax
	movq	_S5C73M3_JPEG_FMT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_COMM_IMG_OUTPUT_INTERLEAVED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_COMM_IMG_OUTPUT_YUV@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	_COMM_IMG_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_s5c73m3_isp_command
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r12, %rdi
	callq	_s5c73m3_set_frame_size
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	$0, 24(%r12)
LBB0_8:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	setne	%bl
	movq	_COMM_SENSOR_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_s5c73m3_isp_command
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ebx, 8(%r12)
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.12:
	cmpq	$0, 16(%r12)
	je	LBB0_15
## %bb.13:
	movq	%r12, %rdi
	callq	_s5c73m3_set_frame_rate
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_v4l2_err
LBB0_15:
	movq	_REG_STATUS_ISP_COMMAND_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5c73m3_check_status           ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_S5C73M3_JPEG_FMT,8,3           ## @S5C73M3_JPEG_FMT
	.comm	_COMM_IMG_OUTPUT_INTERLEAVED,4,2 ## @COMM_IMG_OUTPUT_INTERLEAVED
	.comm	_COMM_IMG_OUTPUT_YUV,4,2        ## @COMM_IMG_OUTPUT_YUV
	.comm	_COMM_IMG_OUTPUT,4,2            ## @COMM_IMG_OUTPUT
	.comm	_COMM_SENSOR_STREAMING,4,2      ## @COMM_SENSOR_STREAMING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error setting frame rate(%d)\n"

	.comm	_REG_STATUS_ISP_COMMAND_COMPLETED,4,2 ## @REG_STATUS_ISP_COMMAND_COMPLETED
	.no_dead_strip	___s5c73m3_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5c73m3_s_stream
___s5c73m3_s_stream:                    ; @__s5c73m3_s_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	w2, LBB0_5
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _S5C73M3_JPEG_FMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5C73M3_JPEG_FMT@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _COMM_IMG_OUTPUT_INTERLEAVED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _COMM_IMG_OUTPUT_INTERLEAVED@GOTPAGEOFF]
Lloh5:
	adrp	x11, _COMM_IMG_OUTPUT_YUV@GOTPAGE
Lloh6:
	ldr	x11, [x11, _COMM_IMG_OUTPUT_YUV@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _COMM_IMG_OUTPUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _COMM_IMG_OUTPUT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5c73m3_isp_command
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_s5c73m3_set_frame_size
	cbnz	w0, LBB0_6
; %bb.4:
	str	xzr, [x19, #24]
LBB0_5:
	cmp	w21, #0
	cset	w22, ne
Lloh10:
	adrp	x8, _COMM_SENSOR_STREAMING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMM_SENSOR_STREAMING@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_s5c73m3_isp_command
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	w22, [x19, #8]
	cbz	w21, LBB0_12
; %bb.8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_s5c73m3_set_frame_rate
	tbz	w0, #31, LBB0_11
; %bb.10:
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
LBB0_11:
Lloh15:
	adrp	x8, _REG_STATUS_ISP_COMMAND_COMPLETED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_STATUS_ISP_COMMAND_COMPLETED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_s5c73m3_check_status
LBB0_12:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_S5C73M3_JPEG_FMT,8,3           ; @S5C73M3_JPEG_FMT
	.comm	_COMM_IMG_OUTPUT_INTERLEAVED,4,2 ; @COMM_IMG_OUTPUT_INTERLEAVED
	.comm	_COMM_IMG_OUTPUT_YUV,4,2        ; @COMM_IMG_OUTPUT_YUV
	.comm	_COMM_IMG_OUTPUT,4,2            ; @COMM_IMG_OUTPUT
	.comm	_COMM_SENSOR_STREAMING,4,2      ; @COMM_SENSOR_STREAMING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error setting frame rate(%d)\n"

	.comm	_REG_STATUS_ISP_COMMAND_COMPLETED,4,2 ; @REG_STATUS_ISP_COMMAND_COMPLETED
	.no_dead_strip	___s5c73m3_s_stream
.subsections_via_symbols
