	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gx_apply_alpha
LCPI0_0:
	.quad	0x406fe00000000000              ## double 255
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gx_apply_alpha
	.p2align	4, 0x90
_gx_apply_alpha:                        ## @gx_apply_alpha
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_vcos_assert
	movq	(%rbx), %rax
	movq	_GX_PBUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
	callq	_vcos_assert
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_PBUFFER,8,3                 ## @GX_PBUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_apply_alpha                 ; -- Begin function gx_apply_alpha
	.p2align	2
_gx_apply_alpha:                        ; @gx_apply_alpha
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	d8, d0
	mov	x19, x0
	bl	_vcos_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _GX_PBUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GX_PBUFFER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d0, x8
	fdiv	d0, d8, d0
	str	d0, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, #0
	bl	_vcos_assert
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_PBUFFER,8,3                 ; @GX_PBUFFER
.subsections_via_symbols
