	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function php_round_helper
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_php_round_helper:                      ## @php_round_helper
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movapd	%xmm0, %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	jae	LBB0_1
## %bb.8:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	callq	_ceil
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movq	_PHP_ROUND_HALF_DOWN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_10
## %bb.9:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	ucomisd	%xmm2, %xmm0
	jne	LBB0_10
	jnp	LBB0_14
LBB0_10:
	movq	_PHP_ROUND_HALF_EVEN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.11:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	callq	_ceil
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	ucomisd	%xmm2, %xmm0
	jne	LBB0_12
	jnp	LBB0_14
LBB0_12:
	movq	_PHP_ROUND_HALF_ODD@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_15
## %bb.13:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	callq	_ceil
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	ucomisd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	jne	LBB0_15
	jp	LBB0_15
LBB0_14:
	addsd	LCPI0_3(%rip), %xmm1
	jmp	LBB0_15
LBB0_1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	callq	_floor
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movq	_PHP_ROUND_HALF_DOWN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	ucomisd	%xmm2, %xmm0
	jne	LBB0_3
	jnp	LBB0_7
LBB0_3:
	movq	_PHP_ROUND_HALF_EVEN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	movapd	%xmm1, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	callq	_floor
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	ucomisd	%xmm2, %xmm0
	jne	LBB0_5
	jnp	LBB0_7
LBB0_5:
	movq	_PHP_ROUND_HALF_ODD@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_15
## %bb.6:
	movapd	%xmm1, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	callq	_floor
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	ucomisd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	jne	LBB0_15
	jp	LBB0_15
LBB0_7:
	addsd	LCPI0_2(%rip), %xmm1
LBB0_15:
	movapd	%xmm1, %xmm0
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_ROUND_HALF_DOWN,4,2        ## @PHP_ROUND_HALF_DOWN
	.comm	_PHP_ROUND_HALF_EVEN,4,2        ## @PHP_ROUND_HALF_EVEN
	.comm	_PHP_ROUND_HALF_ODD,4,2         ## @PHP_ROUND_HALF_ODD
	.no_dead_strip	_php_round_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_round_helper
_php_round_helper:                      ; @php_round_helper
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	mov	x19, x0
	fmov	d9, d0
	fcmp	d0, #0.0
	b.ge	LBB0_8
; %bb.1:
	fmov	d0, #-0.50000000
	fadd	d0, d9, d0
	bl	_ceil
	scvtf	d8, w0
Lloh0:
	adrp	x8, _PHP_ROUND_HALF_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHP_ROUND_HALF_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
	fmov	d0, #0.50000000
	fadd	d0, d8, d0
	fcmp	d0, d9
	b.eq	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _PHP_ROUND_HALF_EVEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHP_ROUND_HALF_EVEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	fmov	d0, #0.50000000
	fmul	d0, d8, d0
	bl	_ceil
	lsl	w8, w0, #1
	scvtf	d0, w8
	fmov	d1, #-0.50000000
	fadd	d0, d0, d1
	fcmp	d0, d9
	b.eq	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _PHP_ROUND_HALF_ODD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHP_ROUND_HALF_ODD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_16
; %bb.6:
	fmov	d0, #0.50000000
	fmul	d0, d8, d0
	bl	_ceil
	lsl	w8, w0, #1
	scvtf	d0, w8
	fmov	d1, #-0.50000000
	fadd	d0, d0, d1
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	fcmp	d0, d9
	b.ne	LBB0_16
LBB0_7:
	fmov	d0, #1.00000000
	b	LBB0_15
LBB0_8:
	fmov	d0, #0.50000000
	fadd	d0, d9, d0
	bl	_floor
	scvtf	d8, w0
Lloh9:
	adrp	x8, _PHP_ROUND_HALF_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHP_ROUND_HALF_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:
	fmov	d0, #-0.50000000
	fadd	d0, d8, d0
	fcmp	d0, d9
	b.eq	LBB0_14
LBB0_10:
Lloh12:
	adrp	x8, _PHP_ROUND_HALF_EVEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PHP_ROUND_HALF_EVEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.11:
	fmov	d10, #0.50000000
	fmul	d0, d8, d10
	bl	_floor
	lsl	w8, w0, #1
	scvtf	d0, w8
	fadd	d0, d0, d10
	fcmp	d0, d9
	b.eq	LBB0_14
LBB0_12:
Lloh15:
	adrp	x8, _PHP_ROUND_HALF_ODD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHP_ROUND_HALF_ODD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_16
; %bb.13:
	fmov	d10, #0.50000000
	fmul	d0, d8, d10
	bl	_floor
	lsl	w8, w0, #1
	scvtf	d0, w8
	fadd	d0, d0, d10
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fcmp	d0, d9
	b.ne	LBB0_16
LBB0_14:
	fmov	d0, #-1.00000000
LBB0_15:
	fadd	d8, d8, d0
LBB0_16:
	fmov	d0, d8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_ROUND_HALF_DOWN,4,2        ; @PHP_ROUND_HALF_DOWN
	.comm	_PHP_ROUND_HALF_EVEN,4,2        ; @PHP_ROUND_HALF_EVEN
	.comm	_PHP_ROUND_HALF_ODD,4,2         ; @PHP_ROUND_HALF_ODD
	.no_dead_strip	_php_round_helper
.subsections_via_symbols
