	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_codeword
_put_codeword:                          ## @put_codeword
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%edx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert2
	xorl	%edi, %edi
	cmpl	%ebx, (%r15)
	setg	%dil
	callq	_av_assert2
	movq	8(%r15), %rax
	movslq	%ebx, %r12
	movl	(%rax,%r12,4), %edi
	callq	_av_assert2
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_put_bits_count
	subl	%eax, %ebx
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %esi
	cmpl	%esi, %ebx
	jge	LBB0_1
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	16(%r15), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r14, %rdi
	callq	_put_bits
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_put_codeword
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_codeword
_put_codeword:                          ; @put_codeword
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mvn	w8, w2
	lsr	w0, w8, #31
	bl	_av_assert2
	ldr	w8, [x20]
	cmp	w8, w21
	cset	w0, gt
	bl	_av_assert2
	ldr	x8, [x20, #8]
	sbfiz	x22, x21, #2, #32
	ldr	w0, [x8, x22]
	bl	_av_assert2
	ldr	w23, [x19]
	mov	x0, x19
	bl	_put_bits_count
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x22]
	sub	w8, w23, w0
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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	_AVERROR
LBB0_2:
	sxtw	x8, w21
	ldr	x9, [x20, #16]
	ldr	w2, [x9, x8, lsl #2]
	mov	x0, x19
	bl	_put_bits
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_put_codeword
.subsections_via_symbols
