	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_decoding_params
_write_decoding_params:                 ## @write_decoding_params
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	8(%rdi), %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movl	(%r15), %eax
	movq	_PARAMS_DEFAULT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.1:
	movq	_PARAM_PRESENCE_FLAGS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
LBB0_4:
	callq	_put_bits
	movq	_PARAM_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_7
## %bb.6:
	movl	$1, %edx
	callq	_put_bits
	movl	4(%r15), %edx
	movq	%r12, %rdi
	movl	$9, %esi
	jmp	LBB0_8
LBB0_7:
	xorl	%edx, %edx
LBB0_8:
	callq	_put_bits
LBB0_9:
	movq	_PARAM_MATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_12
## %bb.11:
	movl	$1, %edx
	callq	_put_bits
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_write_matrix_params
	jmp	LBB0_13
LBB0_12:
	xorl	%edx, %edx
	callq	_put_bits
LBB0_13:
	movq	_PARAM_OUTSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_18
## %bb.14:
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_17
## %bb.15:
	movl	$1, %edx
	callq	_put_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_sbits
	incl	%ebx
	cmpl	(%r14), %ebx
	jbe	LBB0_16
	jmp	LBB0_18
LBB0_17:
	xorl	%edx, %edx
	callq	_put_bits
LBB0_18:
	movq	_PARAM_QUANTSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_23
## %bb.19:
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_22
## %bb.20:
	movl	$1, %edx
	callq	_put_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	incl	%ebx
	cmpl	4(%r14), %ebx
	jbe	LBB0_21
	jmp	LBB0_23
LBB0_22:
	xorl	%edx, %edx
	callq	_put_bits
LBB0_23:
	movl	8(%r14), %ebx
	cmpl	4(%r14), %ebx
	jbe	LBB0_24
LBB0_41:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_25
LBB0_37:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edx, %edx
	callq	_put_bits
LBB0_38:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	%r13d, %r15d
	leaq	(%rbx,%rbx,2), %r13
	movl	(%r14,%r13,4), %edx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_put_bits
	movl	4(%r14,%r13,4), %edx
	movl	%r15d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_bits
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_25 Depth=1
	incl	%ebx
	cmpl	4(%r14), %ebx
	ja	LBB0_41
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ebx
	testb	$15, (%r15)
	je	LBB0_39
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	_PARAM_FIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	$1, %edx
	callq	_put_bits
	movq	_FIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_write_filter_params
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	jmp	LBB0_40
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edx, %edx
	callq	_put_bits
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_PARAM_IIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	$1, %edx
	callq	_put_bits
	movq	_IIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_write_filter_params
	jmp	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edx, %edx
	callq	_put_bits
LBB0_34:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_PARAM_HUFFOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	testl	%r13d, %eax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	$1, %edx
	callq	_put_bits
	leaq	(%rbx,%rbx,2), %rax
	movl	8(%r14,%rax,4), %edx
	movq	%r12, %rdi
	movl	$15, %esi
	callq	_put_sbits
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAMS_DEFAULT,4,2             ## @PARAMS_DEFAULT
	.comm	_PARAM_PRESENCE_FLAGS,4,2       ## @PARAM_PRESENCE_FLAGS
	.comm	_PARAM_BLOCKSIZE,4,2            ## @PARAM_BLOCKSIZE
	.comm	_PARAM_MATRIX,4,2               ## @PARAM_MATRIX
	.comm	_PARAM_OUTSHIFT,4,2             ## @PARAM_OUTSHIFT
	.comm	_PARAM_QUANTSTEP,4,2            ## @PARAM_QUANTSTEP
	.comm	_PARAM_FIR,4,2                  ## @PARAM_FIR
	.comm	_FIR,4,2                        ## @FIR
	.comm	_PARAM_IIR,4,2                  ## @PARAM_IIR
	.comm	_IIR,4,2                        ## @IIR
	.comm	_PARAM_HUFFOFFSET,4,2           ## @PARAM_HUFFOFFSET
	.no_dead_strip	_write_decoding_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_decoding_params
_write_decoding_params:                 ; @write_decoding_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x24, x23, [x0, #8]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _PARAMS_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PARAMS_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _PARAM_PRESENCE_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARAM_PRESENCE_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #8
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
LBB0_4:
	bl	_put_bits
	ldr	w9, [x23]
Lloh6:
	adrp	x8, _PARAM_BLOCKSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PARAM_BLOCKSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x23, #4]
	mov	x0, x20
	mov	w1, #9
	b	LBB0_8
LBB0_7:
	mov	w2, #0
LBB0_8:
	bl	_put_bits
LBB0_9:
	ldr	w9, [x23]
Lloh9:
	adrp	x8, _PARAM_MATRIX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PARAM_MATRIX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_12
; %bb.11:
	mov	w2, #1
	bl	_put_bits
	mov	x0, x21
	mov	x1, x20
	bl	_write_matrix_params
	b	LBB0_13
LBB0_12:
	mov	w2, #0
	bl	_put_bits
LBB0_13:
	ldr	w9, [x23]
Lloh12:
	adrp	x8, _PARAM_OUTSHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PARAM_OUTSHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_18
; %bb.14:
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_17
; %bb.15:
	mov	w2, #1
	bl	_put_bits
	mov	w22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	ldr	w2, [x8, w22, uxtw #2]
	mov	x0, x20
	mov	w1, #4
	bl	_put_sbits
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ls	LBB0_16
	b	LBB0_18
LBB0_17:
	mov	w2, #0
	bl	_put_bits
LBB0_18:
	ldr	w9, [x23]
Lloh15:
	adrp	x8, _PARAM_QUANTSTEP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PARAM_QUANTSTEP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_23
; %bb.19:
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_22
; %bb.20:
	mov	w2, #1
	bl	_put_bits
	mov	w22, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w2, [x8, w22, uxtw #2]
	mov	x0, x20
	mov	w1, #4
	bl	_put_bits
	add	w22, w22, #1
	ldr	w8, [x24, #4]
	cmp	w22, w8
	b.ls	LBB0_21
	b	LBB0_23
LBB0_22:
	mov	w2, #0
	bl	_put_bits
LBB0_23:
	ldp	w9, w8, [x24, #4]
	cmp	w8, w9
	b.ls	LBB0_25
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh18:
	adrp	x26, _PARAM_IIR@GOTPAGE
Lloh19:
	ldr	x26, [x26, _PARAM_IIR@GOTPAGEOFF]
Lloh20:
	adrp	x27, _PARAM_HUFFOFFSET@GOTPAGE
Lloh21:
	ldr	x27, [x27, _PARAM_HUFFOFFSET@GOTPAGEOFF]
	mov	w28, #12
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #0
	bl	_put_bits
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	madd	x25, x22, x28, x25
	ldr	w2, [x25]
	mov	x0, x20
	mov	w1, #2
	bl	_put_bits
	ldr	w2, [x25, #4]
	mov	x0, x20
	mov	w1, #5
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	bl	_put_bits
	add	w8, w22, #1
	ldr	w9, [x24, #4]
	cmp	w8, w9
	b.hi	LBB0_24
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	mov	w22, w8
	ldrb	w8, [x23]
	tst	w8, #0xf
	b.eq	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x25, [x21]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w9, [x23]
Lloh22:
	adrp	x8, _PARAM_FIR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PARAM_FIR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #1
	bl	_put_bits
Lloh25:
	adrp	x8, _FIR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FIR@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_write_filter_params
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	b	LBB0_28
LBB0_34:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #0
	bl	_put_bits
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	w9, [x23]
	ldr	w8, [x26]
	tst	w8, w9
	b.eq	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #1
	bl	_put_bits
Lloh28:
	adrp	x8, _IIR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IIR@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_write_filter_params
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #0
	bl	_put_bits
LBB0_39:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	w9, [x23]
	ldr	w8, [x27]
	tst	w8, w9
	b.eq	LBB0_27
; %bb.40:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x20
	mov	w1, #1
	tst	w8, w19
	b.eq	LBB0_26
; %bb.41:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #1
	bl	_put_bits
	madd	x8, x22, x28, x25
	ldr	w2, [x8, #8]
	mov	x0, x20
	mov	w1, #15
	bl	_put_sbits
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAMS_DEFAULT,4,2             ; @PARAMS_DEFAULT
	.comm	_PARAM_PRESENCE_FLAGS,4,2       ; @PARAM_PRESENCE_FLAGS
	.comm	_PARAM_BLOCKSIZE,4,2            ; @PARAM_BLOCKSIZE
	.comm	_PARAM_MATRIX,4,2               ; @PARAM_MATRIX
	.comm	_PARAM_OUTSHIFT,4,2             ; @PARAM_OUTSHIFT
	.comm	_PARAM_QUANTSTEP,4,2            ; @PARAM_QUANTSTEP
	.comm	_PARAM_FIR,4,2                  ; @PARAM_FIR
	.comm	_FIR,4,2                        ; @FIR
	.comm	_PARAM_IIR,4,2                  ; @PARAM_IIR
	.comm	_IIR,4,2                        ; @IIR
	.comm	_PARAM_HUFFOFFSET,4,2           ; @PARAM_HUFFOFFSET
	.no_dead_strip	_write_decoding_params
.subsections_via_symbols
