	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ue_golomb
_get_ue_golomb:                         ## @get_ue_golomb
	.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	%rdi, %r14
	movq	_re@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_OPEN_READER
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_UPDATE_CACHE
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_GET_CACHE
	movl	%eax, %ebx
	cmpl	$134217728, %eax                ## imm = 0x8000000
	jb	LBB0_2
## %bb.1:
	shrl	$23, %ebx
	movl	(%r13), %edi
	movq	_ff_golomb_vlc_len@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rsi
	callq	_LAST_SKIP_BITS
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_CLOSE_READER
	movq	_ff_ue_golomb_vlc_code@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	%ebx, %edi
	callq	_av_log2
	movl	%eax, %r12d
	leal	(%r12,%r12), %r15d
	movl	(%r13), %edi
	movl	$63, %edx
	subl	%r15d, %edx
	movq	%r14, %rsi
	callq	_LAST_SKIP_BITS
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_CLOSE_READER
	cmpl	$18, %r12d
	jg	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	addb	$-31, %r15b
	movl	%r15d, %ecx
	shrl	%cl, %ebx
	decl	%ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_re,4,2                         ## @re
	.comm	_ff_golomb_vlc_len,8,3          ## @ff_golomb_vlc_len
	.comm	_ff_ue_golomb_vlc_code,8,3      ## @ff_ue_golomb_vlc_code
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid UE golomb code\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_get_ue_golomb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ue_golomb
_get_ue_golomb:                         ; @get_ue_golomb
	.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	x19, x0
Lloh0:
	adrp	x22, _re@GOTPAGE
Lloh1:
	ldr	x22, [x22, _re@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_OPEN_READER
	ldr	w0, [x22]
	mov	x1, x19
	bl	_UPDATE_CACHE
	ldr	w0, [x22]
	mov	x1, x19
	bl	_GET_CACHE
	mov	x20, x0
	lsr	w8, w0, #27
	cbz	w8, LBB0_2
; %bb.1:
	lsr	w8, w20, #23
	ldr	w0, [x22]
Lloh2:
	adrp	x9, _ff_golomb_vlc_len@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ff_golomb_vlc_len@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	lsl	x20, x8, #2
	ldr	w2, [x9, x20]
	mov	x1, x19
	bl	_LAST_SKIP_BITS
	ldr	w0, [x22]
	mov	x1, x19
	bl	_CLOSE_READER
Lloh5:
	adrp	x8, _ff_ue_golomb_vlc_code@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ff_ue_golomb_vlc_code@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w0, [x8, x20]
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_av_log2
	mov	x21, x0
	lsl	w23, w0, #1
	ldr	w0, [x22]
	mov	w8, #63
	sub	w2, w8, w23
	mov	x1, x19
	bl	_LAST_SKIP_BITS
	ldr	w0, [x22]
	mov	x1, x19
	bl	_CLOSE_READER
	cmp	w21, #18
	b.gt	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	sub	w8, w23, #31
	lsr	w8, w20, w8
	sub	w0, w8, #1
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_re,4,2                         ; @re
	.comm	_ff_golomb_vlc_len,8,3          ; @ff_golomb_vlc_len
	.comm	_ff_ue_golomb_vlc_code,8,3      ; @ff_ue_golomb_vlc_code
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid UE golomb code\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_get_ue_golomb
.subsections_via_symbols
