	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_khrn_clip_range2               ## -- Begin function khrn_clip_range2
	.p2align	4, 0x90
_khrn_clip_range2:                      ## @khrn_clip_range2
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rbp), %rax
	shrq	$63, %rax
	xorl	$1, %eax
	xorl	%edi, %edi
	movq	(%rdx), %rcx
	orq	%r8, %rcx
	cmovnsl	%eax, %edi
	callq	_vcos_assert
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r13
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r12
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	__max
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rbx
	callq	__adds
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	__max
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %r15
	leaq	(%r15,%r13), %r14
	addq	%rbx, %rcx
	cmpq	%rbx, %r13
	jge	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rcx, %r13
	callq	__subs
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	__adds
	movq	%r13, %rcx
	movq	%rax, %rsi
	movq	%rbx, %r13
	jmp	LBB0_3
LBB0_1:
	movq	%r12, %rsi
LBB0_3:
	addq	%r12, %r15
	cmpq	%rcx, %r14
	jle	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rcx, %rsi
	callq	__subs
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	__subs
	movq	%r14, %rsi
	movq	%rax, %r15
	jmp	LBB0_6
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	16(%rbp), %rcx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %rcx
	cmpq	%r14, %rsi
	jge	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rcx, %r12
	callq	__subs
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	__adds
	movq	%r12, %rcx
	movq	%rax, %r13
	movq	%r14, %rsi
LBB0_8:
	movq	%rsi, %r12
	cmpq	%rcx, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movq	%rcx, %r15
	movq	%rcx, %rsi
	callq	__subs
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	__subs
	movq	%rax, %rdi
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:
	movq	%r13, %rsi
	callq	__subs
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	__max
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r12, %r15
	movq	%r12, %rsi
	callq	__subs
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	__max
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_vcos_assert
	testq	%rbx, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmovneq	%r13, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	cmovneq	%r15, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_khrn_clip_range2               ; -- Begin function khrn_clip_range2
	.p2align	2
_khrn_clip_range2:                      ; @khrn_clip_range2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x6
	mov	x19, x5
	mov	x28, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x8, [x2]
	orr	x8, x8, x4
	lsr	x9, x6, #63
	eor	w9, w9, #0x1
	lsr	x8, x8, #63
	bic	w0, w9, w8
	bl	_vcos_assert
	ldr	x25, [x23]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x24, [x21]
	ldr	x21, [x20]
	mov	x0, x25
	mov	x1, x24
	bl	__max
	mov	x1, x21
	bl	__adds
	mov	x21, x0
	mov	x0, x25
	mov	x1, x24
	bl	__max
	sub	x8, x21, x0
	add	x21, x8, x25
	add	x26, x8, x24
	add	x28, x28, x22
	cmp	x25, x22
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x25
	bl	__subs
	mov	x1, x0
	mov	x0, x24
	bl	__adds
	mov	x24, x0
	mov	x25, x22
LBB0_2:
	cmp	x21, x28
	b.le	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x28
	bl	__subs
	mov	x1, x0
	mov	x0, x26
	bl	__subs
	mov	x26, x0
	mov	x21, x28
LBB0_4:
	add	x27, x27, x19
	cmp	x24, x19
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x24
	bl	__subs
	mov	x1, x0
	mov	x0, x25
	bl	__adds
	mov	x25, x0
	mov	x24, x19
LBB0_6:
	cmp	x26, x27
	b.le	LBB0_8
; %bb.7:
	mov	x0, x26
	mov	x1, x27
	bl	__subs
	mov	x1, x0
	mov	x0, x21
	bl	__subs
	mov	x21, x0
	mov	x26, x27
LBB0_8:
	mov	x0, x21
	mov	x1, x25
	bl	__subs
	mov	x1, #0
	bl	__max
	mov	x21, x0
	mov	x0, x26
	mov	x1, x24
	bl	__subs
	mov	x1, #0
	bl	__max
	cmp	x21, x0
	cset	w0, eq
	bl	_vcos_assert
	cmp	x21, #0
	csel	x8, x22, x25, eq
	str	x8, [x23]
	csel	x8, x19, x24, eq
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9]
	str	x21, [x20]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
