	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_div
_calc_div:                              ## @calc_div
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%r8d, %r8d
	movl	%edi, %eax
	cmpl	%esi, %edi
	jle	LBB0_1
## %bb.2:
	movl	%edi, %eax
	sarl	%eax
	movl	$1, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.3:
	movl	%edi, %eax
	sarl	$2, %eax
	movl	$2, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.4:
	movl	%edi, %eax
	sarl	$3, %eax
	movl	$3, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.5:
	movl	%edi, %eax
	sarl	$4, %eax
	movl	$4, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.6:
	movl	%edi, %eax
	sarl	$5, %eax
	movl	$5, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.7:
	movl	%edi, %eax
	sarl	$6, %eax
	movl	$6, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.8:
	movl	%edi, %eax
	sarl	$7, %eax
	movl	$7, %r8d
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.9:
	movl	%edi, %eax
	sarl	$8, %eax
	movl	$8, (%rdx)
	movl	$8, %r8d
	jmp	LBB0_10
LBB0_1:
	cmpl	%esi, %edi
	setg	%cl
	movl	%r8d, (%rdx)
	movl	%eax, %edi
	shll	%cl, %edi
LBB0_10:
	movl	%edi, %ecx
	subl	%esi, %ecx
	subl	%eax, %esi
	cmpl	%ecx, %esi
	jle	LBB0_12
## %bb.11:
	decl	%r8d
	movl	%r8d, (%rdx)
	movl	%edi, %eax
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_div
_calc_div:                              ; @calc_div
	.cfi_startproc
; %bb.0:
	cmp	w0, w1
	b.le	LBB0_9
; %bb.1:
	asr	w8, w0, #1
	cmp	w8, w1
	b.le	LBB0_10
; %bb.2:
	asr	w8, w0, #2
	cmp	w8, w1
	b.le	LBB0_11
; %bb.3:
	asr	w8, w0, #3
	cmp	w8, w1
	b.le	LBB0_12
; %bb.4:
	asr	w8, w0, #4
	cmp	w8, w1
	b.le	LBB0_13
; %bb.5:
	asr	w8, w0, #5
	cmp	w8, w1
	b.le	LBB0_14
; %bb.6:
	asr	w8, w0, #6
	cmp	w8, w1
	b.le	LBB0_15
; %bb.7:
	asr	w8, w0, #7
	cmp	w8, w1
	b.le	LBB0_16
; %bb.8:
	asr	w8, w0, #8
	mov	w9, #8
	str	w9, [x2]
	b	LBB0_18
LBB0_9:
	mov	w9, #0
	mov	x8, x0
	b	LBB0_17
LBB0_10:
	mov	w9, #1
	b	LBB0_17
LBB0_11:
	mov	w9, #2
	b	LBB0_17
LBB0_12:
	mov	w9, #3
	b	LBB0_17
LBB0_13:
	mov	w9, #4
	b	LBB0_17
LBB0_14:
	mov	w9, #5
	b	LBB0_17
LBB0_15:
	mov	w9, #6
	b	LBB0_17
LBB0_16:
	mov	w9, #7
LBB0_17:
	cmp	w0, w1
	cset	w10, gt
	str	w9, [x2]
	lsl	w0, w8, w10
LBB0_18:
	sub	w10, w1, w8
	sub	w11, w0, w1
	cmp	w10, w11
	b.le	LBB0_20
; %bb.19:
	sub	w8, w9, #1
	str	w8, [x2]
	mov	x8, x0
LBB0_20:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_div
.subsections_via_symbols
