	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_hw_set_in_image_rgb        ## -- Begin function gsc_hw_set_in_image_rgb
	.p2align	4, 0x90
_gsc_hw_set_in_image_rgb:               ## @gsc_hw_set_in_image_rgb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_GSC_IN_CON@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rsi
	movq	8(%rbx), %rcx
	cmpq	(%rdx), %rsi
	jne	LBB0_1
## %bb.2:
	movq	_GSC_IN_RGB_HD_WIDE@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_GSC_IN_RGB_SD_WIDE@GOTPCREL(%rip), %rdx
LBB0_3:
	orl	(%rdx), %eax
	movq	(%rcx), %rcx
	movq	_V4L2_PIX_FMT_RGB565X@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_GSC_IN_RGB565@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_V4L2_PIX_FMT_RGB32@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	_GSC_IN_XRGB8888@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
LBB0_8:
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_IN_CON,8,3                 ## @GSC_IN_CON
	.comm	_V4L2_COLORSPACE_REC709,8,3     ## @V4L2_COLORSPACE_REC709
	.comm	_GSC_IN_RGB_HD_WIDE,4,2         ## @GSC_IN_RGB_HD_WIDE
	.comm	_GSC_IN_RGB_SD_WIDE,4,2         ## @GSC_IN_RGB_SD_WIDE
	.comm	_V4L2_PIX_FMT_RGB565X,8,3       ## @V4L2_PIX_FMT_RGB565X
	.comm	_GSC_IN_RGB565,4,2              ## @GSC_IN_RGB565
	.comm	_V4L2_PIX_FMT_RGB32,8,3         ## @V4L2_PIX_FMT_RGB32
	.comm	_GSC_IN_XRGB8888,4,2            ## @GSC_IN_XRGB8888
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_hw_set_in_image_rgb        ; -- Begin function gsc_hw_set_in_image_rgb
	.p2align	2
_gsc_hw_set_in_image_rgb:               ; @gsc_hw_set_in_image_rgb
	.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	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _GSC_IN_CON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GSC_IN_CON@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh4:
	adrp	x9, _GSC_IN_RGB_HD_WIDE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GSC_IN_RGB_HD_WIDE@GOTPAGEOFF]
Lloh6:
	adrp	x10, _GSC_IN_RGB_SD_WIDE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GSC_IN_RGB_SD_WIDE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldp	x11, x12, [x19]
	cmp	x11, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x12]
Lloh9:
	adrp	x9, _V4L2_PIX_FMT_RGB565X@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565X@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _GSC_IN_RGB565@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSC_IN_RGB565@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh14:
	adrp	x9, _V4L2_PIX_FMT_RGB32@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB32@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh17:
	adrp	x8, _GSC_IN_XRGB8888@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GSC_IN_XRGB8888@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_5:
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_IN_CON,8,3                 ; @GSC_IN_CON
	.comm	_V4L2_COLORSPACE_REC709,8,3     ; @V4L2_COLORSPACE_REC709
	.comm	_GSC_IN_RGB_HD_WIDE,4,2         ; @GSC_IN_RGB_HD_WIDE
	.comm	_GSC_IN_RGB_SD_WIDE,4,2         ; @GSC_IN_RGB_SD_WIDE
	.comm	_V4L2_PIX_FMT_RGB565X,8,3       ; @V4L2_PIX_FMT_RGB565X
	.comm	_GSC_IN_RGB565,4,2              ; @GSC_IN_RGB565
	.comm	_V4L2_PIX_FMT_RGB32,8,3         ; @V4L2_PIX_FMT_RGB32
	.comm	_GSC_IN_XRGB8888,4,2            ; @GSC_IN_XRGB8888
.subsections_via_symbols
