	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TitanSetBlendingMode           ## -- Begin function TitanSetBlendingMode
	.p2align	4, 0x90
_TitanSetBlendingMode:                  ## @TitanSetBlendingMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TITAN_BLEND_ADD@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	movq	_TitanBlendPixelsTop@GOTPCREL(%rip), %rax
	cmoveq	_TitanBlendPixelsAdd@GOTPCREL(%rip), %rax
	movq	_TITAN_BLEND_BOTTOM@GOTPCREL(%rip), %rcx
	movq	_TitanTransBit@GOTPCREL(%rip), %rdx
	movq	_TitanTransAlpha@GOTPCREL(%rip), %rsi
	cmoveq	%rdx, %rsi
	cmpl	%edi, (%rcx)
	cmoveq	_TitanBlendPixelsBottom@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_tt_context@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	cmoveq	%rdx, %rsi
	movq	(%rsi), %rax
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TITAN_BLEND_BOTTOM,4,2         ## @TITAN_BLEND_BOTTOM
	.comm	_TitanBlendPixelsBottom,4,2     ## @TitanBlendPixelsBottom
	.comm	_tt_context,16,3                ## @tt_context
	.comm	_TitanTransBit,8,3              ## @TitanTransBit
	.comm	_TITAN_BLEND_ADD,4,2            ## @TITAN_BLEND_ADD
	.comm	_TitanBlendPixelsAdd,4,2        ## @TitanBlendPixelsAdd
	.comm	_TitanBlendPixelsTop,4,2        ## @TitanBlendPixelsTop
	.comm	_TitanTransAlpha,8,3            ## @TitanTransAlpha
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TitanSetBlendingMode           ; -- Begin function TitanSetBlendingMode
	.p2align	2
_TitanSetBlendingMode:                  ; @TitanSetBlendingMode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TITAN_BLEND_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TITAN_BLEND_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
Lloh3:
	adrp	x8, _TitanBlendPixelsAdd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TitanBlendPixelsAdd@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TitanBlendPixelsTop@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TitanBlendPixelsTop@GOTPAGEOFF]
Lloh7:
	adrp	x10, _TITAN_BLEND_BOTTOM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TITAN_BLEND_BOTTOM@GOTPAGEOFF]
	csel	x8, x8, x9, eq
Lloh9:
	ldr	w9, [x10]
Lloh10:
	adrp	x10, _TitanBlendPixelsBottom@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TitanBlendPixelsBottom@GOTPAGEOFF]
Lloh12:
	adrp	x11, _TitanTransBit@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TitanTransBit@GOTPAGEOFF]
	ccmp	w9, w0, #4, ne
Lloh14:
	adrp	x12, _TitanTransAlpha@GOTPAGE
Lloh15:
	ldr	x12, [x12, _TitanTransAlpha@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	cmp	w9, w0
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _tt_context@GOTPAGE
Lloh17:
	ldr	x9, [x9, _tt_context@GOTPAGEOFF]
	str	w8, [x9, #8]
	ldr	x8, [x11]
	str	x8, [x9]
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TITAN_BLEND_BOTTOM,4,2         ; @TITAN_BLEND_BOTTOM
	.comm	_TitanBlendPixelsBottom,4,2     ; @TitanBlendPixelsBottom
	.comm	_tt_context,16,3                ; @tt_context
	.comm	_TitanTransBit,8,3              ; @TitanTransBit
	.comm	_TITAN_BLEND_ADD,4,2            ; @TITAN_BLEND_ADD
	.comm	_TitanBlendPixelsAdd,4,2        ; @TitanBlendPixelsAdd
	.comm	_TitanBlendPixelsTop,4,2        ; @TitanBlendPixelsTop
	.comm	_TitanTransAlpha,8,3            ; @TitanTransAlpha
.subsections_via_symbols
