	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writeINT
_writeINT:                              ## @writeINT
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movl	(%rdx), %edx
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	xorl	%ebx, %ebx
	cmpl	$-1, %ecx
	cmovnel	%ecx, %ebx
	cmpl	$-2, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_addrsize@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	cmpl	$1928, %edx                     ## imm = 0x788
	jl	LBB0_3
## %bb.4:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$4096, %ecx                     ## imm = 0x1000
	orl	(%rax), %ecx
	movq	%r8, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_checksum
	movl	$16, (%r14)
	movl	$2, %eax
	jmp	LBB0_5
LBB0_3:
	sarl	$3, %eax
LBB0_5:
	cmpl	$4, %ebx
	ja	LBB0_7
## %bb.6:
	movl	$1, %r8d
	movl	%ebx, %edx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdi
	addq	%rsi, %rdi
	movl	%eax, %edx
	jmpq	*%rdi
LBB0_8:
	movl	%r12d, %edi
	movl	%r12d, %ecx
	shrl	$24, %ecx
	movslq	%eax, %rdx
	movq	%r15, %rsi
	movb	%cl, (%r15,%rdx)
	movl	%r12d, %ecx
	shrl	$16, %ecx
	movb	%cl, 1(%r15,%rdx)
	addl	$2, %edx
	movl	$3, %r8d
LBB0_9:
	movslq	%edx, %rdx
	movq	%r15, %rsi
	movl	%r12d, %ecx
	movb	%ch, (%rsi,%rdx)
	addl	%r8d, %eax
LBB0_10:
	cltq
	movb	%r12b, (%r15,%rax)
LBB0_11:
	shll	$3, %ebx
	addl	%ebx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_addrsize,4,2                   ## @addrsize
	.comm	_code,4,2                       ## @code
	.no_dead_strip	_writeINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writeINT
_writeINT:                              ; @writeINT
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w2, [x2]
	add	w8, w2, #7
	cmp	w2, #0
	csel	w8, w8, w2, lt
Lloh0:
	adrp	x9, _addrsize@GOTPAGE
Lloh1:
	ldr	x9, [x9, _addrsize@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmn	w3, #1
	csel	w10, wzr, w3, eq
	cmn	w3, #2
	csel	w22, w9, w10, eq
	cmp	w2, #1928
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _code@GOTPAGE
Lloh4:
	ldr	x8, [x8, _code@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w3, w8, #0x1000
	mov	x0, x4
	mov	x1, x20
	bl	_checksum
	mov	w8, #16
	str	w8, [x19]
	mov	w8, #2
	b	LBB0_3
LBB0_2:
	asr	w8, w8, #3
LBB0_3:
	cmp	w22, #4
	b.hi	LBB0_9
; %bb.4:
	mov	w9, #1
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x22]
	add	x11, x11, x12, lsl #2
	mov	x10, x8
	br	x11
LBB0_5:
	lsr	w9, w21, #24
	add	x10, x20, w8, sxtw
	strb	w9, [x10]
	lsr	w9, w21, #16
	strb	w9, [x10, #1]
	add	w10, w8, #2
	mov	w9, #3
LBB0_6:
	lsr	w11, w21, #8
	strb	w11, [x20, w10, sxtw]
	add	w8, w8, w9
LBB0_7:
	strb	w21, [x20, w8, sxtw]
LBB0_8:
	ldr	w8, [x19]
	add	w8, w8, w22, lsl #3
	str	w8, [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
LBB0_9:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_addrsize,4,2                   ; @addrsize
	.comm	_code,4,2                       ; @code
	.no_dead_strip	_writeINT
.subsections_via_symbols
