	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ispif_set_format
_ispif_set_format:                      ## @ispif_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	___ispif_get_format
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%rbx), %r8d
	movl	8(%rbx), %edx
	leaq	4(%rbx), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ispif_try_format
	movl	4(%rbx), %eax
	movl	%eax, (%r12)
	movl	8(%rbx), %eax
	movq	_MSM_ISPIF_PAD_SINK@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_MSM_ISPIF_PAD_SRC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___ispif_get_format
	movl	4(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	(%r13), %edx
	movl	(%rbx), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rcx
	callq	_ispif_try_format
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSM_ISPIF_PAD_SINK,4,2         ## @MSM_ISPIF_PAD_SINK
	.comm	_MSM_ISPIF_PAD_SRC,4,2          ## @MSM_ISPIF_PAD_SRC
	.no_dead_strip	_ispif_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ispif_set_format
_ispif_set_format:                      ; @ispif_set_format
	.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	x20, x2
	mov	x19, x1
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	ldr	w2, [x20, #8]
	ldr	w3, [x20]
	mov	x1, x19
	bl	___ispif_get_format
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w2, [x20, #8]
	add	x3, x20, #4
	ldr	w4, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_ispif_try_format
	ldr	w8, [x20, #4]
	str	w8, [x22]
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _MSM_ISPIF_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSM_ISPIF_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x22, _MSM_ISPIF_PAD_SRC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MSM_ISPIF_PAD_SRC@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w3, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	___ispif_get_format
	mov	x3, x0
	ldr	w8, [x20, #4]
	str	w8, [x0]
	ldr	w2, [x22]
	ldr	w4, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_ispif_try_format
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSM_ISPIF_PAD_SINK,4,2         ; @MSM_ISPIF_PAD_SINK
	.comm	_MSM_ISPIF_PAD_SRC,4,2          ; @MSM_ISPIF_PAD_SRC
	.no_dead_strip	_ispif_set_format
.subsections_via_symbols
