	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_set_format
_vfe_set_format:                        ## @vfe_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	$40, %rsp
	.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, %r15
	movq	%rdi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r12
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	___vfe_get_format
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	16(%rbx), %rdx
	movl	8(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_vfe_try_format
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	movq	16(%rbx), %rax
	movq	_MSM_VFE_PAD_SINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_MSM_VFE_PAD_SRC@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movl	8(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	___vfe_get_format
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	(%r13), %rdx
	movl	8(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rcx
	callq	_vfe_try_format
	movq	(%r12), %rax
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	_MSM_VFE_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -68(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -72(%rbp)
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vfe_set_selection
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$40, %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_VFE_PAD_SINK,8,3           ## @MSM_VFE_PAD_SINK
	.comm	_MSM_VFE_PAD_SRC,8,3            ## @MSM_VFE_PAD_SRC
	.comm	_VFE_LINE_PIX,8,3               ## @VFE_LINE_PIX
	.comm	_V4L2_SEL_TGT_COMPOSE,4,2       ## @V4L2_SEL_TGT_COMPOSE
	.no_dead_strip	_vfe_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_set_format
_vfe_set_format:                        ; @vfe_set_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x22, x0
	ldr	x2, [x21, #16]
	ldr	w3, [x21, #8]
	mov	x1, x19
	bl	___vfe_get_format
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	x2, [x21, #16]
	ldr	w4, [x21, #8]
	mov	x0, x22
	mov	x1, x19
	mov	x3, x21
	bl	_vfe_try_format
	ldr	x8, [x21]
	str	x8, [x23]
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x23, _MSM_VFE_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSM_VFE_PAD_SINK@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh2:
	adrp	x24, _MSM_VFE_PAD_SRC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MSM_VFE_PAD_SRC@GOTPAGEOFF]
	ldr	x2, [x24]
	ldr	w3, [x21, #8]
	mov	x0, x22
	mov	x1, x19
	bl	___vfe_get_format
	mov	x3, x0
	ldr	x8, [x21]
	str	x8, [x0]
	ldr	x2, [x24]
	ldr	w4, [x21, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_vfe_try_format
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _VFE_LINE_PIX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VFE_LINE_PIX@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, #8]
	str	w8, [sp, #24]
	ldr	x8, [x23]
	str	x8, [sp, #16]
Lloh7:
	adrp	x8, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	d0, [x21]
	str	d0, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_vfe_set_selection
	tbnz	w0, #31, LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSM_VFE_PAD_SINK,8,3           ; @MSM_VFE_PAD_SINK
	.comm	_MSM_VFE_PAD_SRC,8,3            ; @MSM_VFE_PAD_SRC
	.comm	_VFE_LINE_PIX,8,3               ; @VFE_LINE_PIX
	.comm	_V4L2_SEL_TGT_COMPOSE,4,2       ; @V4L2_SEL_TGT_COMPOSE
	.no_dead_strip	_vfe_set_format
.subsections_via_symbols
