	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_floor_header
_put_floor_header:                      ## @put_floor_header
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$16, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_put_bits
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_put_bits
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, 16(%r13)
	jle	LBB0_12
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movslq	16(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	40(%r13), %rax
	leaq	(,%rbx,8), %rcx
	leaq	(%rcx,%rcx,2), %r15
	movl	(%rax,%r15), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	movq	40(%r13), %rax
	movl	4(%rax,%r15), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	40(%r13), %rax
	cmpl	$0, 4(%rax,%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rax,%r15), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	40(%r13), %rax
	movl	4(%rax,%r15), %ecx
	cmpl	$31, %ecx
	je	LBB0_11
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %r12
	movq	16(%rax,%r12,8), %rax
	movl	(%rax), %edx
	incl	%edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	cmpl	$2, %ebx
	movl	$1, %eax
	cmovll	%eax, %ebx
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r13), %rax
	movq	16(%rax,%r12,8), %rax
	movl	(%rax,%r15,4), %edx
	incl	%edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_12:
	movl	20(%r13), %edx
	decl	%edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_put_bits
	movl	24(%r13), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_put_bits
	cmpl	$3, 28(%r13)
	jl	LBB0_15
## %bb.13:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%r13), %esi
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_put_bits
	incq	%rbx
	movslq	28(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_floor_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_floor_header
_put_floor_header:                      ; @put_floor_header
	.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	x19, x1
	mov	x20, x0
	mov	w1, #16
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x21, #0
	mov	w22, #1
	mov	w23, #24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x19, #40]
	add	x9, x21, x21, lsl #1
	lsl	x24, x9, #3
	ldr	w8, [x8, x24]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #3
	bl	_put_bits
	ldr	x8, [x19, #40]
	add	x8, x8, x24
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	w1, #2
	bl	_put_bits
	ldr	x8, [x19, #40]
	add	x9, x8, x24
	ldr	w10, [x9, #4]
	cbz	w10, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x9, #8]
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x19, #40]
	add	x9, x8, x24
	ldr	w9, [x9, #4]
	cmp	w9, #31
	b.eq	LBB0_5
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #0
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	w25, w22, w9
	cmp	w25, #1
	csinc	w24, w25, wzr, gt
	madd	x8, x21, x23, x8
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	add	w2, w8, #1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	cmp	w25, #2
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	x24, x24, #2
	mov	w25, #4
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #40]
	madd	x8, x21, x23, x8
	ldr	x8, [x8, #16]
	ldr	w8, [x8, x25]
	add	w2, w8, #1
	mov	x0, x20
	mov	w1, #8
	bl	_put_bits
	add	x25, x25, #4
	cmp	x24, x25
	b.ne	LBB0_11
	b	LBB0_5
LBB0_12:
	ldr	w8, [x19, #20]
	sub	w2, w8, #1
	mov	x0, x20
	mov	w1, #2
	bl	_put_bits
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	ldr	w8, [x19, #28]
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.13:
	mov	w21, #2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #24]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_put_bits
	add	x21, x21, #1
	ldrsw	x8, [x19, #28]
	cmp	x21, x8
	b.lt	LBB0_14
LBB0_15:
	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	_put_floor_header
.subsections_via_symbols
