	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbedtls_int_div_int
_mbedtls_int_div_int:                   ## @mbedtls_int_div_int
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	_biH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1, %r14d
	movl	%r15d, %ecx
	shll	%cl, %r14d
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	%edi, %r13d
	cmpl	%edx, %edi
	jge	LBB0_2
## %bb.4:
	movl	%esi, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%r14), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movl	%edx, %ebx
	callq	_mbedtls_clz
	movq	%rax, %r8
	movl	%r8d, %ecx
	shll	%cl, %ebx
	shll	%cl, %r13d
	movq	_biL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	subl	%r8d, %ecx
	movl	%r12d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	movl	%r8d, %r9d
	negl	%r9d
	decb	%al
	movl	%eax, %ecx
	sarl	%cl, %r9d
	andl	%edx, %r9d
	orl	%r13d, %r9d
	movl	%r8d, %ecx
	shll	%cl, %r12d
	movq	_biH@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %r11d
	sarl	%cl, %r11d
	movl	%r12d, %r10d
	sarl	%cl, %r10d
	movl	%r9d, %eax
	cltd
	idivl	%r11d
	movl	%eax, %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r13d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, %r13d
	andl	%eax, %r12d
	movl	%edi, %eax
	imull	%r13d, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%edi
	addl	%r11d, %edx
	subl	%r13d, %eax
	cmpl	%r14d, %edx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %edi
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	addl	%r10d, %ebx
	cmpl	%ebx, %eax
	jg	LBB0_7
LBB0_8:
	movl	%r15d, %ecx
	shll	%cl, %r9d
	movl	%edi, %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	subl	%eax, %r10d
	addl	%r9d, %r10d
	movl	%r10d, %eax
	cltd
	idivl	%r11d
	movl	%eax, %ebx
	imull	%r13d, %ebx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	decl	%eax
	addl	%r11d, %edx
	subl	%r13d, %ebx
	cmpl	%r14d, %edx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %eax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	addl	%r12d, %esi
	cmpl	%esi, %ebx
	jg	LBB0_11
LBB0_12:
	testq	%r9, %r9
	je	LBB0_14
## %bb.13:
	movl	%r15d, %ecx
	shll	%cl, %r10d
	addl	%r12d, %r10d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	imull	%eax, %ecx
	subl	%ecx, %r10d
	movl	%r8d, %ecx
	sarl	%cl, %r10d
	movl	%r10d, (%r9)
LBB0_14:
	movl	%r15d, %ecx
	shll	%cl, %edi
	addl	%edi, %eax
	jmp	LBB0_15
LBB0_2:
	movl	$-1, %eax
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.3:
	movl	$-1, (%rbx)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_biH,4,2                        ## @biH
	.comm	_biL,4,2                        ## @biL
	.no_dead_strip	_mbedtls_int_div_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbedtls_int_div_int
_mbedtls_int_div_int:                   ; @mbedtls_int_div_int
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	cbz	w2, LBB0_13
; %bb.1:
	mov	x22, x2
	mov	x21, x0
	cmp	w0, w2
	b.ge	LBB0_13
; %bb.2:
	mov	x20, x1
Lloh0:
	adrp	x25, _biH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _biH@GOTPAGEOFF]
	ldr	w23, [x25]
	mov	w8, #1
	lsl	w24, w8, w23
	sub	w26, w24, #1
	mov	x0, x22
	bl	_mbedtls_clz
	lsl	w8, w22, w0
Lloh2:
	adrp	x9, _biL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _biL@GOTPAGEOFF]
	lsl	w10, w21, w0
Lloh4:
	ldr	w9, [x9]
	sub	w11, w9, w0
	asr	w11, w20, w11
	neg	w12, w0
	sub	w9, w9, #1
	asr	w9, w12, w9
	and	w9, w11, w9
	orr	w13, w9, w10
	lsl	w9, w20, w0
	ldr	w10, [x25]
	asr	w11, w8, w10
	and	w12, w8, w26
	asr	w14, w9, w10
	and	w10, w9, w26
	sdiv	w9, w13, w11
	msub	w15, w11, w9, w13
	mul	w16, w12, w9
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, #1
	sub	w16, w16, w12
	add	w15, w15, w11
	cmp	w15, w24
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w24
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w17, w15, w23
	add	w17, w17, w14
	cmp	w16, w17
	b.gt	LBB0_3
LBB0_6:
	lsl	w13, w13, w23
	msub	w14, w9, w8, w14
	add	w14, w14, w13
	sdiv	w13, w14, w11
	msub	w15, w13, w11, w14
	mul	w16, w12, w13
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w13, w13, #1
	sub	w16, w16, w12
	add	w15, w15, w11
	cmp	w15, w24
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w13, w24
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	w17, w15, w23
	add	w17, w17, w10
	cmp	w16, w17
	b.gt	LBB0_7
LBB0_10:
	cbz	x19, LBB0_12
; %bb.11:
	lsl	w11, w14, w23
	add	w10, w11, w10
	msub	w8, w13, w8, w10
	asr	w8, w8, w0
	str	w8, [x19]
LBB0_12:
	lsl	w8, w9, w23
	add	w0, w13, w8
	b	LBB0_15
LBB0_13:
	mov	w0, #-1
	cbz	x19, LBB0_15
; %bb.14:
	str	w0, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_biH,4,2                        ; @biH
	.comm	_biL,4,2                        ; @biL
	.no_dead_strip	_mbedtls_int_div_int
.subsections_via_symbols
