	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ur_golomb_jpegls
_get_ur_golomb_jpegls:                  ## @get_ur_golomb_jpegls
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_re@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_OPEN_READER
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_GET_CACHE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_av_log2
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	$32, %r12d
	setl	%dil
	callq	_av_assert2
	movl	%r14d, %ecx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	subl	%r12d, %ecx
	movq	_MIN_CACHE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	cmpl	$32, %edx
	sete	%al
	subl	%edx, %eax
	addl	$32, %eax
	cmpl	%eax, %ecx
	jl	LBB0_2
## %bb.1:
	movl	$32, %eax
	subl	%r14d, %eax
	cmpl	%r13d, %eax
	jge	LBB0_2
## %bb.24:
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	movl	%ebx, %eax
	movl	$30, %ebx
	subl	%r14d, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	shll	%cl, %ebx
	addl	%eax, %ebx
	movq	_re@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	subl	%r14d, %ecx
	addl	$32, %ecx
	movq	%r15, %rsi
	movl	%ecx, %edx
	callq	_LAST_SKIP_BITS
	jmp	LBB0_22
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%r13d, %edx
	movq	_re@GOTPCREL(%rip), %r12
	jg	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_SHOW_UBITS
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movl	(%r12), %edi
	movq	_re_index@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MIN_CACHE_BITS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_LAST_SKIP_BITS
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	movl	(%r14), %edx
	addl	%edx, %ebx
	leal	(%rdx,%rbx), %eax
	cmpl	%r13d, %eax
	jle	LBB0_4
LBB0_8:
	cmpl	%r13d, %ebx
	jge	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_SHOW_UBITS
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_SKIP_BITS
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_9
## %bb.11:
	movl	%r13d, %ebx
LBB0_12:
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_LAST_SKIP_BITS
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	decl	%r13d
	cmpl	%r13d, %ebx
	jge	LBB0_20
## %bb.13:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.15:
	movl	(%r12), %edi
	movq	_MIN_CACHE_BITS@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jle	LBB0_16
## %bb.17:
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_SHOW_UBITS
	movq	%r12, %rcx
	movl	%eax, %r12d
	movl	%r13d, %r14d
	jmp	LBB0_18
LBB0_20:
	movl	$-1, %ebx
	jne	LBB0_22
## %bb.21:
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_SHOW_UBITS
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_LAST_SKIP_BITS
	incl	%ebx
	jmp	LBB0_22
LBB0_6:
	movq	%r15, %rsi
	callq	_CLOSE_READER
	movl	$-1, %ebx
	jmp	LBB0_23
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_16:
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_SHOW_UBITS
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-16(%rax), %r14d
	movl	%r14d, %ecx
	shll	%cl, %r13d
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_LAST_SKIP_BITS
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_SHOW_UBITS
	movq	%r12, %rcx
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_18:
	movl	(%rcx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_LAST_SKIP_BITS
LBB0_19:
	movl	%r13d, %ecx
	shll	%cl, %ebx
	addl	%r12d, %ebx
	movq	_re@GOTPCREL(%rip), %r12
LBB0_22:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_CLOSE_READER
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_re,4,2                         ## @re
	.comm	_MIN_CACHE_BITS,4,2             ## @MIN_CACHE_BITS
	.comm	_re_index,8,3                   ## @re_index
	.no_dead_strip	_get_ur_golomb_jpegls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ur_golomb_jpegls
_get_ur_golomb_jpegls:                  ; @get_ur_golomb_jpegls
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _re@GOTPAGE
Lloh1:
	ldr	x25, [x25, _re@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_OPEN_READER
	ldr	w0, [x25]
	mov	x1, x19
	bl	_UPDATE_CACHE
	ldr	w0, [x25]
	mov	x1, x19
	bl	_GET_CACHE
	mov	x24, x0
	bl	_av_log2
	mov	x23, x0
	cmp	w20, #32
	cset	w0, lt
	bl	_av_assert2
Lloh2:
	adrp	x26, _MIN_CACHE_BITS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MIN_CACHE_BITS@GOTPAGEOFF]
	ldr	w2, [x26]
	cmp	w2, #32
	cset	w8, eq
	sub	w8, w8, w2
	add	w9, w8, #32
	mov	w8, #32
	sub	w10, w8, w23
	sub	w8, w23, w20
	cmp	w8, w9
	ccmp	w10, w22, #0, ge
	b.lt	LBB0_3
; %bb.1:
	cmp	w2, w22
	b.le	LBB0_4
; %bb.2:
	mov	w23, #0
	b	LBB0_8
LBB0_3:
	lsr	w8, w24, w8
	mov	w9, #30
	sub	w9, w9, w23
	lsl	w9, w9, w20
	add	w21, w8, w9
	ldr	w0, [x25]
	sub	w8, w20, w23
	add	w2, w8, #32
	mov	x1, x19
	bl	_LAST_SKIP_BITS
	b	LBB0_24
LBB0_4:
	mov	w23, #0
Lloh4:
	adrp	x24, _re_index@GOTPAGE
Lloh5:
	ldr	x24, [x24, _re_index@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	bl	_SHOW_UBITS
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x25]
	cmp	x8, x9
	b.le	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x26]
	mov	x1, x19
	bl	_LAST_SKIP_BITS
	ldr	w0, [x25]
	mov	x1, x19
	bl	_UPDATE_CACHE
	ldr	w2, [x26]
	add	w23, w2, w23
	add	w8, w2, w23
	cmp	w8, w22
	b.le	LBB0_5
LBB0_8:
	cmp	w23, w22
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	mov	w2, #1
	bl	_SHOW_UBITS
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	mov	w2, #1
	bl	_SKIP_BITS
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_9
; %bb.11:
	mov	x23, x22
LBB0_12:
	ldr	w0, [x25]
	mov	x1, x19
	mov	w2, #1
	bl	_LAST_SKIP_BITS
	ldr	w0, [x25]
	mov	x1, x19
	bl	_UPDATE_CACHE
	sub	w8, w22, #1
	cmp	w23, w8
	b.ge	LBB0_16
; %bb.13:
	cbz	w20, LBB0_20
; %bb.14:
	ldr	w8, [x26]
	ldr	w0, [x25]
	mov	x1, x19
	cmp	w8, w20
	b.le	LBB0_21
; %bb.15:
	mov	x2, x20
	bl	_SHOW_UBITS
	mov	x22, x0
	mov	x21, x20
	b	LBB0_22
LBB0_16:
	b.ne	LBB0_18
; %bb.17:
	ldr	w0, [x25]
	mov	x1, x19
	mov	x2, x21
	bl	_SHOW_UBITS
	mov	x20, x0
	ldr	w0, [x25]
	mov	x1, x19
	mov	x2, x21
	bl	_LAST_SKIP_BITS
	add	w21, w20, #1
	b	LBB0_24
LBB0_18:
	mov	w21, #-1
	b	LBB0_24
LBB0_19:
	mov	x1, x19
	bl	_CLOSE_READER
	mov	w21, #-1
	b	LBB0_25
LBB0_20:
	mov	w22, #0
	b	LBB0_23
LBB0_21:
	mov	w2, #16
	bl	_SHOW_UBITS
	sub	w21, w20, #16
	lsl	w22, w0, w21
	ldr	w0, [x25]
	mov	x1, x19
	mov	w2, #16
	bl	_LAST_SKIP_BITS
	ldr	w0, [x25]
	mov	x1, x19
	bl	_UPDATE_CACHE
	ldr	w0, [x25]
	mov	x1, x19
	mov	x2, x21
	bl	_SHOW_UBITS
	orr	w22, w0, w22
LBB0_22:
	ldr	w0, [x25]
	mov	x1, x19
	mov	x2, x21
	bl	_LAST_SKIP_BITS
LBB0_23:
	lsl	w8, w23, w20
	add	w21, w22, w8
LBB0_24:
	ldr	w0, [x25]
	mov	x1, x19
	bl	_CLOSE_READER
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_re,4,2                         ; @re
	.comm	_MIN_CACHE_BITS,4,2             ; @MIN_CACHE_BITS
	.comm	_re_index,8,3                   ; @re_index
	.no_dead_strip	_get_ur_golomb_jpegls
.subsections_via_symbols
