	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_com
_put_com:                               ## @put_com
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_LIBAVCODEC_IDENT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_strlen
	movl	%eax, %r14d
	movq	8(%rbx), %rcx
	movq	_AV_CODEC_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %ecx
	subl	4(%rbx), %ecx
	leal	6(%r14), %edx
	movl	$-1, %eax
	cmpl	%edx, %ecx
	jl	LBB0_3
## %bb.2:
	addl	$4, %r14d
	addq	$4, %rbx
	movq	_JPEG2000_COM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be16
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bytestream_put_be16
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bytestream_put_be16
	movl	(%r15), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_bytestream_put_buffer
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBAVCODEC_IDENT,4,2           ## @LIBAVCODEC_IDENT
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ## @AV_CODEC_FLAG_BITEXACT
	.comm	_JPEG2000_COM,4,2               ## @JPEG2000_COM
	.no_dead_strip	_put_com
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_com
_put_com:                               ; @put_com
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _LIBAVCODEC_IDENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LIBAVCODEC_IDENT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_strlen
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
	ldr	w9, [x19, #4]!
	add	w10, w0, #6
	sub	w8, w8, w9
	cmp	w8, w10
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	add	w20, w0, #4
Lloh5:
	adrp	x8, _JPEG2000_COM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JPEG2000_COM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bytestream_put_be16
	mov	x0, x19
	mov	x1, x20
	bl	_bytestream_put_be16
	mov	x0, x19
	mov	w1, #1
	bl	_bytestream_put_be16
	ldr	w20, [x21]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_bytestream_put_buffer
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBAVCODEC_IDENT,4,2           ; @LIBAVCODEC_IDENT
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ; @AV_CODEC_FLAG_BITEXACT
	.comm	_JPEG2000_COM,4,2               ; @JPEG2000_COM
	.no_dead_strip	_put_com
.subsections_via_symbols
