	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_ptl
_write_ptl:                             ## @write_ptl
	.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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	addq	$24, %rsi
	callq	_write_ptl_layer
	movq	24(%r12), %rdx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	cmpl	$2, %r15d
	jl	LBB0_12
## %bb.1:
	leal	-1(%r15), %eax
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
## %bb.3:
	leal	-2(%r15), %eax
	cmpl	$6, %eax
	ja	LBB0_6
## %bb.4:
	addl	$-9, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_put_bits
	incl	%r15d
	jne	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$8, %rbx
	decq	%r13
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	cmpq	$0, (%rax,%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_write_ptl_layer
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	cmpq	$0, (%rax,%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_ptl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_ptl
_write_ptl:                             ; @write_ptl
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, x1, #24
	bl	_write_ptl_layer
	ldr	x2, [x19, #24]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	subs	w23, w21, #2
	b.lt	LBB0_17
; %bb.1:
	mov	x24, #0
	sub	w22, w21, #1
	lsl	x25, x22, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x2, [x8, x24]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	x8, [x19, #8]
	ldr	x2, [x8, x24]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	add	x24, x24, #8
	cmp	x25, x24
	b.ne	LBB0_2
; %bb.3:
	cmp	w23, #6
	b.hi	LBB0_11
; %bb.4:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
	cmp	w21, #8
	b.eq	LBB0_11
; %bb.5:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
	cmp	w21, #7
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
	cmp	w21, #6
	b.eq	LBB0_11
; %bb.7:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
	cmp	w21, #5
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
	cmp	w21, #4
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
	cmp	w21, #3
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #2
	mov	x2, #0
	bl	_put_bits
LBB0_11:
	mov	x21, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #8
	subs	x22, x22, #1
	b.eq	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	add	x1, x8, x21
	mov	x0, x20
	bl	_write_ptl_layer
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21]
	cbz	x8, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	ldr	x2, [x8, x21]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	b	LBB0_12
LBB0_17:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_ptl
.subsections_via_symbols
