	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epia_write_block
_epia_write_block:                      ## @epia_write_block
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	cmpq	$5, %rax
	ja	LBB0_25
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	$161, %edi
	callq	_w0
	movl	$1, %edi
	callq	_w2
	movl	$3, %edi
	callq	_w2
	movl	$1, %edi
	callq	_w2
	movl	$5, %edi
	callq	_w2
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.3:
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$32768, %r13d                   ## imm = 0x8000
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	4(%r15), %edi
	callq	_w2
	movl	$1, %eax
	subl	%r15d, %eax
	incq	%rbx
	movl	%eax, %r15d
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	movq	%r14, %r12
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r14
	movsbl	(%r12,%rbx), %r12d
	cmpl	%r12d, %r13d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_w0
	movl	%r12d, %r13d
	jmp	LBB0_6
LBB0_7:
	movl	$7, %edi
	callq	_w2
	movl	$4, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_w2                             ## TAILCALL
LBB0_8:
	cmpl	$512, %r14d                     ## imm = 0x200
	jge	LBB0_9
## %bb.10:
	movl	$132, %edi
	movl	$1, %esi
	callq	_WR
	movl	$64, %edi
	callq	_w3
	testl	%r14d, %r14d
	jg	LBB0_11
	jmp	LBB0_14
LBB0_20:
	cmpl	$512, %r14d                     ## imm = 0x200
	jge	LBB0_21
## %bb.22:
	movl	$132, %edi
	movl	$1, %esi
	callq	_WR
	movl	$64, %edi
	callq	_w3
	cmpl	$4, %r14d
	jge	LBB0_23
	jmp	LBB0_14
LBB0_15:
	cmpl	$512, %r14d                     ## imm = 0x200
	jge	LBB0_16
## %bb.17:
	movl	$132, %edi
	movl	$1, %esi
	callq	_WR
	movl	$64, %edi
	callq	_w3
	cmpl	$2, %r14d
	jge	LBB0_18
	jmp	LBB0_14
LBB0_9:
	movl	$64, %edi
	callq	_w3
LBB0_11:
	movl	%r14d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_w4
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
	jmp	LBB0_13
LBB0_21:
	movl	$64, %edi
	callq	_w3
LBB0_23:
	movl	%r14d, %r15d
	shrl	$2, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_w4l
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_24
	jmp	LBB0_13
LBB0_16:
	movl	$64, %edi
	callq	_w3
LBB0_18:
	movl	%r14d, %r15d
	shrl	%r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_w4w
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_19
LBB0_13:
	cmpl	$511, %r14d                     ## imm = 0x1FF
	jg	LBB0_25
LBB0_14:
	movl	$132, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WR                             ## TAILCALL
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_epia_write_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epia_write_block
_epia_write_block:                      ; @epia_write_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	cmp	w8, #5
	b.hi	LBB0_25
; %bb.1:
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #161
	bl	_w0
	mov	w21, #1
	mov	w0, #1
	bl	_w2
	mov	w0, #3
	bl	_w2
	mov	w0, #1
	bl	_w2
	mov	w0, #5
	bl	_w2
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
	mov	w23, w20
	mov	w24, #32768
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w22, #4
	bl	_w2
	sub	w22, w21, w22
	add	x19, x19, #1
	subs	x23, x23, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w20, [x19]
	cmp	w24, w20
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_w0
	mov	x24, x20
	b	LBB0_4
LBB0_7:
	mov	w0, #7
	bl	_w2
	mov	w0, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_w2
LBB0_8:
	cmp	w20, #512
	b.ge	LBB0_14
; %bb.9:
	mov	w0, #132
	mov	w1, #1
	bl	_WR
	mov	w0, #64
	bl	_w3
	cmp	w20, #1
	b.ge	LBB0_15
	b	LBB0_24
LBB0_10:
	cmp	w20, #512
	b.ge	LBB0_17
; %bb.11:
	mov	w0, #132
	mov	w1, #1
	bl	_WR
	mov	w0, #64
	bl	_w3
	cmp	w20, #4
	b.ge	LBB0_18
	b	LBB0_24
LBB0_12:
	cmp	w20, #512
	b.ge	LBB0_20
; %bb.13:
	mov	w0, #132
	mov	w1, #1
	bl	_WR
	mov	w0, #64
	bl	_w3
	cmp	w20, #2
	b.ge	LBB0_21
	b	LBB0_24
LBB0_14:
	mov	w0, #64
	bl	_w3
LBB0_15:
	mov	w21, w20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19], #1
	bl	_w4
	subs	x21, x21, #1
	b.ne	LBB0_16
	b	LBB0_23
LBB0_17:
	mov	w0, #64
	bl	_w3
LBB0_18:
	lsr	w21, w20, #2
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19], #4
	bl	_w4l
	subs	x21, x21, #1
	b.ne	LBB0_19
	b	LBB0_23
LBB0_20:
	mov	w0, #64
	bl	_w3
LBB0_21:
	lsr	w21, w20, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19], #4
	bl	_w4w
	subs	x21, x21, #1
	b.ne	LBB0_22
LBB0_23:
	cmp	w20, #511
	b.gt	LBB0_25
LBB0_24:
	mov	w0, #132
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WR
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_epia_write_block
.subsections_via_symbols
