	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resizer_set_stream
_resizer_set_stream:                    ## @resizer_set_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	%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
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_isp_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_device
	movq	%rax, %r12
	cmpl	$128, (%rbx)
	jne	LBB0_3
## %bb.1:
	cmpl	$128, %r14d
	je	LBB0_16
## %bb.2:
	movq	_OMAP3_ISP_SUBCLK_RESIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_subclk_enable
	movq	%rbx, %rdi
	callq	_resizer_configure
	movq	%rbx, %rdi
	callq	_resizer_print_status
LBB0_3:
	leaq	16(%rbx), %rcx
	cmpl	$128, %r14d
	je	LBB0_11
## %bb.4:
	cmpl	$129, %r14d
	je	LBB0_8
## %bb.5:
	cmpl	$130, %r14d
	jne	LBB0_15
## %bb.6:
	movq	_OMAP3_ISP_SBL_RESIZER_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %r12
	movq	%r15, %rdi
	callq	_omap3isp_sbl_enable
	movq	_ISP_VIDEO_DMAQUEUE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.7:
	movq	%r12, %r15
	movq	%rbx, %rdi
	callq	_resizer_enable_oneshot
	movq	%r12, %rdi
	jmp	LBB0_14
LBB0_11:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rdi
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdx
	addq	$4, %rdx
	callq	_omap3isp_module_sync_idle
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_13:
	movq	_OMAP3_ISP_SBL_RESIZER_READ@GOTPCREL(%rip), %rax
	movq	_OMAP3_ISP_SBL_RESIZER_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_disable
	movq	_OMAP3_ISP_SUBCLK_RESIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_subclk_disable
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:
	callq	_isp_video_dmaqueue_flags_clr
	jmp	LBB0_15
LBB0_8:
	movl	12(%rbx), %eax
	movq	_RESIZER_INPUT_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	_OMAP3_ISP_SBL_RESIZER_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_enable
LBB0_10:
	movq	_OMAP3_ISP_SBL_RESIZER_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap3isp_sbl_enable
	movq	%rbx, %rdi
	callq	_resizer_enable_oneshot
LBB0_15:
	movl	%r14d, (%rbx)
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3_ISP_SUBCLK_RESIZER,4,2   ## @OMAP3_ISP_SUBCLK_RESIZER
	.comm	_OMAP3_ISP_SBL_RESIZER_WRITE,4,2 ## @OMAP3_ISP_SBL_RESIZER_WRITE
	.comm	_ISP_VIDEO_DMAQUEUE_QUEUED,4,2  ## @ISP_VIDEO_DMAQUEUE_QUEUED
	.comm	_RESIZER_INPUT_MEMORY,4,2       ## @RESIZER_INPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_RESIZER_READ,4,2 ## @OMAP3_ISP_SBL_RESIZER_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: module stop timeout.\n"

	.no_dead_strip	_resizer_set_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resizer_set_stream
_resizer_set_stream:                    ; @resizer_set_stream
	.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	x19, x1
	mov	x23, x0
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_isp_device
	mov	x21, x0
	mov	x0, x20
	bl	_to_device
	mov	x24, x0
	mov	x22, x20
	ldr	w8, [x22], #16
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.eq	LBB0_16
; %bb.2:
Lloh0:
	adrp	x8, _OMAP3_ISP_SUBCLK_RESIZER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP3_ISP_SUBCLK_RESIZER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_subclk_enable
	mov	x0, x20
	bl	_resizer_configure
	mov	x0, x20
	bl	_resizer_print_status
LBB0_3:
	cmp	w19, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w19, #129
	b.eq	LBB0_12
; %bb.5:
	cmp	w19, #130
	b.ne	LBB0_15
; %bb.6:
Lloh3:
	adrp	x8, _OMAP3_ISP_SBL_RESIZER_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP3_ISP_SBL_RESIZER_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _ISP_VIDEO_DMAQUEUE_QUEUED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISP_VIDEO_DMAQUEUE_QUEUED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.7:
	mov	x0, x20
	bl	_resizer_enable_oneshot
	b	LBB0_11
LBB0_8:
	add	x0, x23, #4
	add	x1, x20, #8
	add	x2, x20, #4
	bl	_omap3isp_module_sync_idle
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w2, [x23]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_dbg
LBB0_10:
Lloh11:
	adrp	x8, _OMAP3_ISP_SBL_RESIZER_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP3_ISP_SBL_RESIZER_READ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _OMAP3_ISP_SBL_RESIZER_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OMAP3_ISP_SBL_RESIZER_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_omap3isp_sbl_disable
Lloh17:
	adrp	x8, _OMAP3_ISP_SUBCLK_RESIZER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMAP3_ISP_SUBCLK_RESIZER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_subclk_disable
LBB0_11:
	mov	x0, x22
	bl	_isp_video_dmaqueue_flags_clr
	b	LBB0_15
LBB0_12:
	ldr	w8, [x20, #12]
Lloh20:
	adrp	x9, _RESIZER_INPUT_MEMORY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RESIZER_INPUT_MEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _OMAP3_ISP_SBL_RESIZER_READ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OMAP3_ISP_SBL_RESIZER_READ@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
LBB0_14:
Lloh26:
	adrp	x8, _OMAP3_ISP_SBL_RESIZER_WRITE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OMAP3_ISP_SBL_RESIZER_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
	mov	x0, x20
	bl	_resizer_enable_oneshot
LBB0_15:
	str	w19, [x20]
LBB0_16:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3_ISP_SUBCLK_RESIZER,4,2   ; @OMAP3_ISP_SUBCLK_RESIZER
	.comm	_OMAP3_ISP_SBL_RESIZER_WRITE,4,2 ; @OMAP3_ISP_SBL_RESIZER_WRITE
	.comm	_ISP_VIDEO_DMAQUEUE_QUEUED,4,2  ; @ISP_VIDEO_DMAQUEUE_QUEUED
	.comm	_RESIZER_INPUT_MEMORY,4,2       ; @RESIZER_INPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_RESIZER_READ,4,2 ; @OMAP3_ISP_SBL_RESIZER_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: module stop timeout.\n"

	.no_dead_strip	_resizer_set_stream
.subsections_via_symbols
