	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetBlendMode                ## -- Begin function GX_SetBlendMode
	.p2align	4, 0x90
_GX_SetBlendMode:                       ## @GX_SetBlendMode
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	___gx@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	andl	$-2, %edx
	movl	%edx, (%rax)
	movq	_GX_BM_BLEND@GOTPCREL(%rip), %rdx
	cmpq	%rdi, (%rdx)
	sete	%bl
	movq	_GX_BM_SUBTRACT@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	cmpq	%rdi, (%r8)
	sete	%dl
	orb	%dl, %bl
	movzbl	%bl, %ebx
	andl	$-2050, %esi                    ## imm = 0xF7FE
	orl	%ebx, %esi
	shll	$11, %edx
	orl	%esi, %edx
	movl	%edx, %ebx
	andl	$-3, %ebx
	movl	%ebx, (%rax)
	movq	_GX_BM_LOGIC@GOTPCREL(%rip), %rsi
	cmpq	%rdi, (%rsi)
	jne	LBB0_2
## %bb.1:
	orl	$2, %edx
	movl	%edx, (%rax)
	movl	%edx, %ebx
LBB0_2:
	andl	$-61441, %ebx                   ## imm = 0xFFFF0FFF
	movq	%rcx, %rdi
	movl	$12, %esi
	movl	$4, %edx
	callq	__SHIFTL
	orl	%eax, %ebx
	movq	(%r12), %rax
	movl	%ebx, (%rax)
	andl	$-225, %ebx
	movq	%r15, %rdi
	movl	$5, %esi
	movl	$3, %edx
	callq	__SHIFTL
	orl	%eax, %ebx
	movq	(%r12), %rax
	movl	%ebx, (%rax)
	andl	$-1793, %ebx                    ## imm = 0xF8FF
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$3, %edx
	callq	__SHIFTL
	orl	%eax, %ebx
	movq	(%r12), %rax
	movl	%ebx, (%rax)
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GX_LOAD_BP_REG                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___gx,8,3                       ## @__gx
	.comm	_GX_BM_BLEND,8,3                ## @GX_BM_BLEND
	.comm	_GX_BM_SUBTRACT,8,3             ## @GX_BM_SUBTRACT
	.comm	_GX_BM_LOGIC,8,3                ## @GX_BM_LOGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetBlendMode                ; -- Begin function GX_SetBlendMode
	.p2align	2
_GX_SetBlendMode:                       ; @GX_SetBlendMode
	.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, x2
	mov	x19, x1
Lloh0:
	adrp	x21, ___gx@GOTPAGE
Lloh1:
	ldr	x21, [x21, ___gx@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w9, [x8]
	and	w10, w9, #0xfffffffe
	str	w10, [x8]
Lloh2:
	adrp	x10, _GX_BM_BLEND@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GX_BM_BLEND@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x10, x0
	cset	w10, eq
Lloh5:
	adrp	x11, _GX_BM_SUBTRACT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _GX_BM_SUBTRACT@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x11, x0
	cset	w11, eq
	orr	w10, w10, w11
	mov	w12, #-2050
	and	w9, w9, w12
	orr	w10, w9, w10
	bfi	w10, w11, #11, #1
	and	w9, w10, #0xfffffffd
	str	w9, [x8]
Lloh8:
	adrp	x11, _GX_BM_LOGIC@GOTPAGE
Lloh9:
	ldr	x11, [x11, _GX_BM_LOGIC@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x11, x0
	b.ne	LBB0_2
; %bb.1:
	orr	w9, w10, #0x2
	str	w9, [x8]
LBB0_2:
	and	w22, w9, #0xffff0fff
	mov	x0, x3
	mov	w1, #12
	mov	w2, #4
	bl	__SHIFTL
	orr	w8, w22, w0
	ldr	x9, [x21]
	str	w8, [x9]
	and	w22, w8, #0xffffff1f
	mov	x0, x20
	mov	w1, #5
	mov	w2, #3
	bl	__SHIFTL
	orr	w8, w0, w22
	ldr	x9, [x21]
	str	w8, [x9]
	and	w20, w8, #0xfffff8ff
	mov	x0, x19
	mov	w1, #8
	mov	w2, #3
	bl	__SHIFTL
	orr	w0, w0, w20
	ldr	x8, [x21]
	str	w0, [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	_GX_LOAD_BP_REG
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	___gx,8,3                       ; @__gx
	.comm	_GX_BM_BLEND,8,3                ; @GX_BM_BLEND
	.comm	_GX_BM_SUBTRACT,8,3             ; @GX_BM_SUBTRACT
	.comm	_GX_BM_LOGIC,8,3                ; @GX_BM_LOGIC
.subsections_via_symbols
