	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function update_alpha
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4070000000000000              ## double 256
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_update_alpha:                          ## @update_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
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	leaq	4(%rbx), %rdx
	callq	_av_expr_eval
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	$255, %eax
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm1
	jae	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm1, %xmm0
	jae	LBB0_4
## %bb.3:
	mulsd	LCPI0_1(%rip), %xmm1
	cvttsd2si	%xmm1, %eax
LBB0_4:
	movl	%eax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update_alpha
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_alpha
_update_alpha:                          ; @update_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
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	add	x2, x19, #4
	bl	_av_expr_eval
	fmov	d8, d0
	bl	_isnan
	cbnz	x0, LBB0_7
; %bb.1:
	fmov	d0, #1.00000000
	fcmp	d8, d0
	b.ge	LBB0_4
; %bb.2:
	fcmp	d8, #0.0
	b.ls	LBB0_5
; %bb.3:
	fcvtzs	w8, d8, #8
	b	LBB0_6
LBB0_4:
	mov	w8, #255
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	str	w8, [x19]
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_update_alpha
.subsections_via_symbols
