	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ispif_set_stream
_ispif_set_stream:                      ## @ispif_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, %ebx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	32(%rax), %r13
	movl	(%rax), %r15d
	movl	4(%rax), %eax
	movl	8(%r14), %r12d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	movq	_MSM_ISPIF_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	24(%r14), %rdi
	callq	_media_entity_remote_pad
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	_ispif_select_clk_mux
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_ispif_validate_intf_status
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%r12d, %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ebx
	movl	$1, %r8d
	callq	_ispif_select_csid
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	_ispif_select_cid
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_ispif_config_irq
	movq	%r13, %rdi
	callq	_to_camss
	movq	(%rax), %rax
	movq	_CAMSS_8x96@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	movq	_MSM_ISPIF_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	movl	$1, %r9d
	callq	_ispif_config_pack
LBB0_7:
	movq	_CMD_ENABLE_FRAME_BOUNDARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_ispif_set_intf_cmd
	jmp	LBB0_13
LBB0_8:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_CMD_DISABLE_FRAME_BOUNDARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_ispif_set_intf_cmd
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ebx
	movl	%r12d, %edx
	callq	_ispif_wait_for_stop
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_to_camss
	movq	(%rax), %rax
	movq	_CAMSS_8x96@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%ebx, %r12d
	jne	LBB0_12
## %bb.11:
	movq	16(%r14), %rax
	movq	_MSM_ISPIF_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_ispif_config_pack
LBB0_12:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_ispif_config_irq
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_ispif_select_cid
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_ispif_select_csid
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_ispif_select_clk_mux
LBB0_13:
	movq	%r13, %rdi
	callq	_mutex_unlock
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_2:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_4:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_ISPIF_PAD_SINK,8,3         ## @MSM_ISPIF_PAD_SINK
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.comm	_CAMSS_8x96,8,3                 ## @CAMSS_8x96
	.comm	_CMD_ENABLE_FRAME_BOUNDARY,4,2  ## @CMD_ENABLE_FRAME_BOUNDARY
	.comm	_CMD_DISABLE_FRAME_BOUNDARY,4,2 ## @CMD_DISABLE_FRAME_BOUNDARY
	.no_dead_strip	_ispif_set_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ispif_set_stream
_ispif_set_stream:                      ; @ispif_set_stream
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	bl	_v4l2_get_subdevdata
	mov	x23, x0
	ldr	x19, [x0, #32]
	ldp	w20, w22, [x0]
	ldr	w21, [x0, #8]
	cbz	w24, LBB0_6
; %bb.1:
	ldr	x8, [x23, #24]
Lloh0:
	adrp	x25, _MSM_ISPIF_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSM_ISPIF_PAD_SINK@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x8, x9, lsl #2
	bl	_media_entity_remote_pad
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1
	bl	_ispif_select_clk_mux
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ispif_validate_intf_status
	tbnz	w0, #31, LBB0_12
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1
	bl	_ispif_select_csid
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x21
	mov	w4, #1
	bl	_ispif_select_cid
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #1
	bl	_ispif_config_irq
	mov	x0, x19
	bl	_to_camss
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _CAMSS_8x96@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CAMSS_8x96@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x23, #16]
	ldr	x9, [x25]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, x21
	mov	w5, #1
	bl	_ispif_config_pack
LBB0_5:
Lloh5:
	adrp	x8, _CMD_ENABLE_FRAME_BOUNDARY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_ENABLE_FRAME_BOUNDARY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	w4, #0
	bl	_ispif_set_intf_cmd
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_mutex_lock
Lloh8:
	adrp	x8, _CMD_DISABLE_FRAME_BOUNDARY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_DISABLE_FRAME_BOUNDARY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	w4, #0
	bl	_ispif_set_intf_cmd
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ispif_wait_for_stop
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_to_camss
	ldr	x8, [x0]
Lloh11:
	adrp	x9, _CAMSS_8x96@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CAMSS_8x96@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x23, #16]
Lloh14:
	adrp	x9, _MSM_ISPIF_PAD_SINK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MSM_ISPIF_PAD_SINK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, x21
	mov	w5, #0
	bl	_ispif_config_pack
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_ispif_config_irq
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	bl	_ispif_select_cid
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_ispif_select_csid
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_ispif_select_clk_mux
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w24, #0
	b	LBB0_14
LBB0_11:
Lloh17:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_12:
	mov	x24, x0
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_14
LBB0_13:
	mov	x24, x0
LBB0_14:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_ISPIF_PAD_SINK,8,3         ; @MSM_ISPIF_PAD_SINK
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.comm	_CAMSS_8x96,8,3                 ; @CAMSS_8x96
	.comm	_CMD_ENABLE_FRAME_BOUNDARY,4,2  ; @CMD_ENABLE_FRAME_BOUNDARY
	.comm	_CMD_DISABLE_FRAME_BOUNDARY,4,2 ; @CMD_DISABLE_FRAME_BOUNDARY
	.no_dead_strip	_ispif_set_stream
.subsections_via_symbols
