	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function approx_half
_approx_half:                           ## @approx_half
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	cmpl	$5, %edi
	jl	LBB0_3
## %bb.1:
	cmpl	$5, %esi
	jl	LBB0_3
## %bb.2:
	leal	(,%rsi,8), %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	shll	$2, %esi
	leal	(%rsi,%rsi,2), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$35, %rcx
	addl	%edx, %ecx
	cmpl	%edi, %eax
	setl	%al
	cmpl	%edi, %ecx
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_approx_half
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function approx_half
_approx_half:                           ; @approx_half
	.cfi_startproc
; %bb.0:
	mov	w8, #0
	cmp	w0, #5
	b.lt	LBB0_3
; %bb.1:
	cmp	w1, #5
	b.lt	LBB0_3
; %bb.2:
	lsl	w8, w1, #3
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #35
	add	w11, w1, w1, lsl #1
	lsl	w11, w11, #2
	smull	x9, w11, w9
	lsr	x11, x9, #63
	asr	x9, x9, #35
	add	w9, w9, w11
	add	w8, w8, w10
	cmp	w8, w0
	ccmp	w9, w0, #8, lt
	cset	w8, ge
LBB0_3:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_approx_half
.subsections_via_symbols
