	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chomp6
_chomp6:                                ## @chomp6
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_read_table
	movl	%eax, %r15d
	xorl	(%rbx), %eax
	movl	4(%rbx), %edi
	js	LBB0_2
## %bb.1:
	addl	$506, %edi                      ## imm = 0x1FA
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$32767, %esi                    ## imm = 0x7FFF
	callq	_FFMIN
	jmp	LBB0_3
LBB0_2:
	leal	-314(%rdi), %ecx
	cmpl	$-32454, %edi                   ## imm = 0x813A
	movl	$-32767, %eax                   ## imm = 0x8001
	cmovgel	%ecx, %eax
LBB0_3:
	movl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	addl	%r15d, %edi
	callq	_mace_broken_clip_int16
	movl	%eax, %r15d
	movl	4(%rbx), %eax
	imull	%r15d, %eax
	sarl	$15, %eax
	movl	%eax, 8(%rbx)
	sarl	%r15d
	movl	12(%rbx), %eax
	movl	(%rbx), %edi
	addl	%eax, %edi
	subl	%r15d, %eax
	sarl	$2, %eax
	subl	%eax, %edi
	callq	_QT_8S_2_16S
	movl	%eax, (%r14)
	movl	(%rbx), %eax
	addl	%r15d, %eax
	movl	12(%rbx), %edi
	subl	%r15d, %edi
	sarl	$2, %edi
	addl	%eax, %edi
	callq	_QT_8S_2_16S
	movl	%eax, 4(%r14)
	movl	(%rbx), %eax
	movl	%eax, 12(%rbx)
	movl	%r15d, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_chomp6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chomp6
_chomp6:                                ; @chomp6
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x1, x2
	mov	x2, x3
	bl	_read_table
	mov	x21, x0
	ldp	w9, w8, [x19]
	eor	w9, w9, w0
	tbnz	w9, #31, LBB0_2
; %bb.1:
	add	w0, w8, #506
	mov	w1, #32767
	bl	_FFMIN
	b	LBB0_3
LBB0_2:
	sub	w9, w8, #314
	mov	w10, #-32454
	mov	w11, #-32767
	cmp	w8, w10
	csel	w0, w11, w9, lt
LBB0_3:
	str	w0, [x19, #4]
	ldr	w8, [x19, #8]
	add	w0, w8, w21
	bl	_mace_broken_clip_int16
	ldp	w9, w8, [x19]
	mul	w8, w8, w0
	asr	w8, w8, #15
	str	w8, [x19, #8]
	asr	w21, w0, #1
	ldr	w8, [x19, #12]
	add	w9, w8, w9
	sub	w8, w8, w21
	sub	w0, w9, w8, asr #2
	bl	_QT_8S_2_16S
	str	w0, [x20]
	ldr	w8, [x19]
	add	w8, w8, w21
	ldr	w9, [x19, #12]
	sub	w9, w9, w21
	add	w0, w8, w9, asr #2
	bl	_QT_8S_2_16S
	str	w0, [x20, #4]
	ldr	w8, [x19]
	str	w8, [x19, #12]
	str	w21, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_chomp6
.subsections_via_symbols
