	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_PokeBlendMode               ## -- Begin function GX_PokeBlendMode
	.p2align	4, 0x90
_GX_PokeBlendMode:                      ## @GX_PokeBlendMode
	.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
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	__peReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %r13d
	movq	_GX_BM_BLEND@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_GX_BM_SUBTRACT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	_GX_BM_SUBTRACT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, %rdx
	cmpq	%rdi, %rax
	jne	LBB0_4
LBB0_2:
	orl	$1, %r13d
	movq	%rdx, %rax
	jmp	LBB0_5
LBB0_4:
	andl	$-2, %r13d
LBB0_5:
	andl	$-1090584547, %r13d             ## imm = 0xBEFF001D
	xorl	%r14d, %r14d
	cmpq	%rdi, %rax
	sete	%r14b
	shll	$11, %r14d
	movq	_GX_BM_LOGIC@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	%rdi, (%rax)
	sete	%r15b
	movq	%rcx, %rdi
	movl	$12, %esi
	movl	$4, %edx
	callq	__SHIFTL
	movl	%eax, %r12d
	andl	$-1090521057, %r12d             ## imm = 0xBEFFF81F
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$3, %edx
	callq	__SHIFTL
	movl	%eax, %ebx
	andl	$-1090520833, %ebx              ## imm = 0xBEFFF8FF
	orl	%r12d, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	movl	$3, %edx
	callq	__SHIFTL
	orl	%r13d, %r14d
	leal	(%r14,%r15,2), %ecx
	orl	%ebx, %eax
	orl	%ecx, %eax
	orl	$1090519040, %eax               ## imm = 0x41000000
	movq	__peReg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__peReg,8,3                     ## @_peReg
	.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_PokeBlendMode               ; -- Begin function GX_PokeBlendMode
	.p2align	2
_GX_PokeBlendMode:                      ; @GX_PokeBlendMode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x21, __peReg@GOTPAGE
Lloh1:
	ldr	x21, [x21, __peReg@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
Lloh2:
	adrp	x9, _GX_BM_BLEND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GX_BM_BLEND@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x0
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _GX_BM_SUBTRACT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GX_BM_SUBTRACT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, _GX_BM_SUBTRACT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GX_BM_SUBTRACT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x9]
	mov	x9, x0
	cmp	x10, x0
	b.ne	LBB0_4
LBB0_3:
	orr	w8, w8, #0x1
	b	LBB0_5
LBB0_4:
	and	w8, w8, #0xfffffffe
	mov	x9, x10
LBB0_5:
	mov	w10, #29
	movk	w10, #48895, lsl #16
	and	w22, w8, w10
	cmp	x9, x0
	cset	w23, eq
Lloh11:
	adrp	x8, _GX_BM_LOGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GX_BM_LOGIC@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w24, eq
	mov	x0, x3
	mov	w1, #12
	mov	w2, #4
	bl	__SHIFTL
	and	w25, w0, #0xfffff81f
	mov	x0, x20
	mov	w1, #5
	mov	w2, #3
	bl	__SHIFTL
	mov	w8, #63519
	movk	w8, #48895, lsl #16
	orr	w8, w8, #0xe0
	and	w20, w0, w8
	mov	x0, x19
	mov	w1, #8
	mov	w2, #3
	bl	__SHIFTL
	bfi	w22, w23, #11, #1
	bfi	w22, w24, #1, #1
	orr	w8, w22, w25
	orr	w8, w8, w20
	orr	w8, w8, w0
	mov	w9, #1090519040
	orr	w8, w8, w9
	ldr	x9, [x21]
	str	w8, [x9, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	__peReg,8,3                     ; @_peReg
	.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
