	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_number_to_uint32          ## -- Begin function ecma_number_to_uint32
	.p2align	4, 0x90
_ecma_number_to_uint32:                 ## @ecma_number_to_uint32
	.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	%rdi, %rbx
	callq	_ecma_number_is_nan
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ecma_number_is_zero
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_ecma_number_is_infinity
	testq	%rax, %rax
	je	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movabsq	$4294967296, %r15               ## imm = 0x100000000
	movq	%rbx, %rdi
	callq	_ecma_number_is_negative
	movl	%eax, %r14d
	movq	%rbx, %r12
	negq	%r12
	testl	%eax, %eax
	cmoveq	%rbx, %r12
	cmpq	%r15, %r12
	jl	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ecma_number_calc_remainder
	movq	%rax, %r12
LBB0_8:
	xorl	%edi, %edi
	cmpq	%r15, %r12
	setl	%dil
	callq	_JERRY_ASSERT
	subq	%r12, %r15
	movq	%r12, %rbx
	negq	%rbx
	cmovaeq	%r12, %r15
	testl	%r14d, %r14d
	cmoveq	%r12, %rbx
	cmoveq	%r12, %r15
	xorl	%edi, %edi
	cmpq	%r15, %rbx
	sete	%dil
	callq	_JERRY_ASSERT
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_number_to_uint32          ; -- Begin function ecma_number_to_uint32
	.p2align	2
_ecma_number_to_uint32:                 ; @ecma_number_to_uint32
	.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, x0
	bl	_ecma_number_is_nan
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_ecma_number_is_zero
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_ecma_number_is_infinity
	cbz	x0, LBB0_5
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x21
	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
	ret
LBB0_5:
	mov	x0, x20
	bl	_ecma_number_is_negative
	mov	x19, x0
	cmp	w0, #0
	cneg	x20, x20, ne
	mov	x22, #4294967296
	cmp	x20, x22
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, #4294967296
	bl	_ecma_number_calc_remainder
	mov	x20, x0
LBB0_7:
	cmp	x20, x22
	cset	w0, lt
	bl	_JERRY_ASSERT
	cmp	w19, #0
	cneg	x21, x20, ne
	sub	x8, x22, x20
	cmp	x20, #0
	ccmp	w19, #0, #4, ne
	csel	x8, x8, x20, ne
	cmp	x21, x8
	cset	w0, eq
	bl	_JERRY_ASSERT
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
