	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h261_decode_gob_header
_h261_decode_gob_header:                ## @h261_decode_gob_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_1
LBB0_3:
	movq	$0, 24(%rbx)
	leaq	56(%rbx), %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, 32(%rbx)
	movl	(%rbx), %ecx
	cmpl	$18, 40(%rbx)
	jne	LBB0_5
## %bb.4:
	addl	$-13, %ecx
	movl	$-1, %eax
	cmpl	$-12, %ecx
	jae	LBB0_7
	jmp	LBB0_12
LBB0_5:
	movl	$-1, %eax
	cmpl	$5, %ecx
	ja	LBB0_12
## %bb.6:
	movl	$42, %edx
	btl	%ecx, %edx
	jae	LBB0_12
LBB0_7:
	movq	%r14, %rdi
	callq	_skip_1stop_8data_bits
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	cmpq	$0, 32(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AV_EF_BITSTREAM@GOTPCREL(%rip), %rax
	movq	_AV_EF_COMPLIANT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	48(%rbx), %rdx
	movl	$-1, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_12
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	leaq	56(%rbx), %r14
	movq	%r14, %rdi
	movl	$15, %esi
	callq	_show_bits
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.2:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_skip_bits
	jmp	LBB0_3
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qscale has forbidden 0 value\n"

	.comm	_AV_EF_BITSTREAM,4,2            ## @AV_EF_BITSTREAM
	.comm	_AV_EF_COMPLIANT,4,2            ## @AV_EF_COMPLIANT
	.no_dead_strip	_h261_decode_gob_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h261_decode_gob_header
_h261_decode_gob_header:                ; @h261_decode_gob_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
LBB0_1:
	str	xzr, [x19, #24]
	add	x20, x19, #56
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	str	x0, [x19, #32]
	ldr	w9, [x19, #40]
	ldr	w8, [x19]
	cmp	w9, #18
	b.ne	LBB0_3
; %bb.2:
	sub	w8, w8, #13
	cmn	w8, #12
	b.hs	LBB0_4
	b	LBB0_11
LBB0_3:
	cmp	w8, #5
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #42
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_11
LBB0_4:
	mov	x0, x20
	bl	_skip_1stop_8data_bits
	tbnz	x0, #63, LBB0_9
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
LBB0_6:
	mov	w0, #0
	stp	xzr, xzr, [x19, #8]
	b	LBB0_12
LBB0_7:
	add	x20, x19, #56
	mov	x0, x20
	mov	w1, #15
	bl	_show_bits
	cbnz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	w1, #16
	bl	_skip_bits
	b	LBB0_1
LBB0_9:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_10:
	ldr	x0, [x19, #48]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AV_EF_BITSTREAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_EF_BITSTREAM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _AV_EF_COMPLIANT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AV_EF_COMPLIANT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qscale has forbidden 0 value\n"

	.comm	_AV_EF_BITSTREAM,4,2            ; @AV_EF_BITSTREAM
	.comm	_AV_EF_COMPLIANT,4,2            ; @AV_EF_COMPLIANT
	.no_dead_strip	_h261_decode_gob_header
.subsections_via_symbols
