	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaO_int2fb                    ## -- Begin function luaO_int2fb
	.p2align	4, 0x90
_luaO_int2fb:                           ## @luaO_int2fb
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	cmpl	$8, %edi
	jb	LBB0_9
## %bb.1:
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	jb	LBB0_2
## %bb.5:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	$15, %eax
	movl	%eax, %edx
	shrl	$4, %edx
	addl	$4, %ecx
	cmpl	$2047, %eax                     ## imm = 0x7FF
	movl	%edx, %eax
	ja	LBB0_6
## %bb.3:
	cmpl	$16, %edx
	jae	LBB0_7
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %edx
	cmpl	$16, %edx
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edx
	movl	%edx, %edi
	shrl	%edi
	incl	%ecx
	cmpl	$31, %edx
	movl	%edi, %edx
	ja	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movl	%edx, %edi
LBB0_8:
	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
	leal	8(,%rcx,8), %ebx
	callq	_cast_int
	addl	$-8, %eax
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_9:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaO_int2fb                    ; -- Begin function luaO_int2fb
	.p2align	2
_luaO_int2fb:                           ; @luaO_int2fb
	.cfi_startproc
; %bb.0:
	cmp	w0, #8
	b.lo	LBB0_7
; %bb.1:
	cmp	w0, #128
	b.lo	LBB0_8
; %bb.2:
	mov	w8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w0, #15
	lsr	w0, w9, #4
	add	w8, w8, #4
	cmp	w9, #2047
	b.hi	LBB0_3
; %bb.4:
	cmp	w0, #16
	b.lo	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w0, #1
	lsr	w0, w9, #1
	add	w8, w8, #1
	cmp	w9, #31
	b.hi	LBB0_5
LBB0_6:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	lsl	w8, w8, #3
	add	w19, w8, #8
	bl	_cast_int
	sub	w8, w0, #8
	orr	w0, w8, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	w8, #0
	cmp	w0, #16
	b.hs	LBB0_5
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
