	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_f54_set_input
_rmi_f54_set_input:                     ## @rmi_f54_set_input
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	(%rax), %rdi
	callq	_dev_get_drvdata
	movq	8(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	40(%rbx), %r15
LBB0_2:
	movq	(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	movq	32(%rbx), %r12
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rmi_f54_get_reptype
	movq	_F54_REPORT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	leaq	28(%rbx), %rsi
	movl	%eax, %edi
	callq	_rmi_f54_get_pixel_fmt
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r12d, 8(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_V4L2_COLORSPACE_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	shll	$2, %r15d
	movl	%r15d, 12(%rbx)
	imull	%r12d, %r15d
	movl	%r15d, 16(%rbx)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F54_REPORT_NONE,4,2            ## @F54_REPORT_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_RAW,4,2        ## @V4L2_COLORSPACE_RAW
	.no_dead_strip	_rmi_f54_set_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_f54_set_input
_rmi_f54_set_input:                     ; @rmi_f54_set_input
	.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, x1
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x0, [x8]
	bl	_dev_get_drvdata
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_7
; %bb.1:
	ldr	x22, [x0]
	cbz	x22, LBB0_8
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_rmi_f54_get_reptype
Lloh0:
	adrp	x8, _F54_REPORT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F54_REPORT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	add	x1, x19, #28
	bl	_rmi_f54_get_pixel_fmt
	cbnz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
	stp	w20, w21, [x19]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh9:
	adrp	x8, _V4L2_COLORSPACE_RAW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_COLORSPACE_RAW@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w9, w21, #2
	stp	w22, w9, [x19, #8]
	mul	w9, w9, w22
	stp	w9, w8, [x19, #16]
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:
	ldr	x21, [x19, #40]
	ldr	x22, [x0]
	cbnz	x22, LBB0_2
LBB0_8:
	ldr	x22, [x19, #32]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_F54_REPORT_NONE,4,2            ; @F54_REPORT_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_RAW,4,2        ; @V4L2_COLORSPACE_RAW
	.no_dead_strip	_rmi_f54_set_input
.subsections_via_symbols
