	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsc_src_set_transf
_gsc_src_set_transf:                    ## @gsc_src_set_transf
	.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, %r15d
	movq	%rdi, %r14
	movq	_DRM_MODE_ROTATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%esi, %ebx
	movq	_GSC_IN_CON@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_gsc_read
	movq	_GSC_IN_ROT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_GSC_IN_ROT_90@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_3:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	movq	_GSC_IN_ROT_XFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %r13d
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.6:
	movq	_GSC_IN_ROT_YFLIP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_11
LBB0_8:
	movq	_GSC_IN_ROT_270@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_GSC_IN_ROT_180@GOTPCREL(%rip), %rax
LBB0_9:
	movl	%r13d, %ecx
	orl	(%rax), %ecx
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_GSC_IN_ROT_XFLIP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	xorl	%r13d, %r13d
	cmpl	$1, %eax
	sbbl	%r13d, %r13d
	orl	%edx, %r13d
	andl	%ecx, %r13d
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_GSC_IN_ROT_YFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
LBB0_11:
	movl	(%r12), %esi
	movl	%r13d, %edi
	callq	_gsc_write
	movq	_GSC_IN_ROT_90@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %r13d
	setne	%cl
	movl	%ecx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ## @DRM_MODE_ROTATE_MASK
	.comm	_GSC_IN_CON,4,2                 ## @GSC_IN_CON
	.comm	_GSC_IN_ROT_MASK,4,2            ## @GSC_IN_ROT_MASK
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_GSC_IN_ROT_XFLIP,4,2           ## @GSC_IN_ROT_XFLIP
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.comm	_GSC_IN_ROT_YFLIP,4,2           ## @GSC_IN_ROT_YFLIP
	.comm	_GSC_IN_ROT_90,4,2              ## @GSC_IN_ROT_90
	.comm	_GSC_IN_ROT_180,4,2             ## @GSC_IN_ROT_180
	.comm	_GSC_IN_ROT_270,4,2             ## @GSC_IN_ROT_270
	.no_dead_strip	_gsc_src_set_transf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsc_src_set_transf
_gsc_src_set_transf:                    ; @gsc_src_set_transf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w23, w8, w1
Lloh3:
	adrp	x22, _GSC_IN_CON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GSC_IN_CON@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_gsc_read
Lloh5:
	adrp	x8, _GSC_IN_ROT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSC_IN_ROT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w20, w0, w8
	sub	w8, w23, #128
Lloh8:
	adrp	x23, _GSC_IN_ROT_90@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GSC_IN_ROT_90@GOTPAGEOFF]
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.1:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x23]
Lloh12:
	adrp	x9, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
	orr	w8, w8, w20
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _GSC_IN_ROT_XFLIP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _GSC_IN_ROT_XFLIP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
	b	LBB0_8
LBB0_3:
Lloh18:
	adrp	x8, _GSC_IN_ROT_270@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSC_IN_ROT_270@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _GSC_IN_ROT_180@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GSC_IN_ROT_180@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh22:
	adrp	x9, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _GSC_IN_ROT_XFLIP@GOTPAGE
Lloh26:
	ldr	x10, [x10, _GSC_IN_ROT_XFLIP@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w9, w21
	mov	w9, #-1
	csinv	w9, w9, w10, eq
	and	w20, w9, w8
Lloh28:
	adrp	x8, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.6:
Lloh31:
	adrp	x8, _GSC_IN_ROT_YFLIP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GSC_IN_ROT_YFLIP@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	bic	w20, w20, w8
	b	LBB0_10
LBB0_7:
Lloh34:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _GSC_IN_ROT_XFLIP@GOTPAGE
Lloh38:
	ldr	x9, [x9, _GSC_IN_ROT_XFLIP@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w8, wzr, w9, eq
	orr	w20, w8, w20
LBB0_8:
Lloh40:
	adrp	x8, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
Lloh43:
	adrp	x8, _GSC_IN_ROT_YFLIP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _GSC_IN_ROT_YFLIP@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_10:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_gsc_write
	ldr	w8, [x23]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_MASK,4,2       ; @DRM_MODE_ROTATE_MASK
	.comm	_GSC_IN_CON,4,2                 ; @GSC_IN_CON
	.comm	_GSC_IN_ROT_MASK,4,2            ; @GSC_IN_ROT_MASK
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_GSC_IN_ROT_XFLIP,4,2           ; @GSC_IN_ROT_XFLIP
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.comm	_GSC_IN_ROT_YFLIP,4,2           ; @GSC_IN_ROT_YFLIP
	.comm	_GSC_IN_ROT_90,4,2              ; @GSC_IN_ROT_90
	.comm	_GSC_IN_ROT_180,4,2             ; @GSC_IN_ROT_180
	.comm	_GSC_IN_ROT_270,4,2             ; @GSC_IN_ROT_270
	.no_dead_strip	_gsc_src_set_transf
.subsections_via_symbols
