	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ur_golomb_jpegls
_set_ur_golomb_jpegls:                  ## @set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	%esi, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert2
	movl	%r14d, %r12d
	movl	%r15d, %ecx
	sarl	%cl, %r12d
	leal	1(%r12), %esi
	cmpl	%ebx, %esi
	jge	LBB0_1
## %bb.3:
	cmpl	$31, %r12d
	jl	LBB0_7
## %bb.4:
	addl	$32, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_put_bits
	addl	$-31, %r12d
	cmpl	$62, %r12d
	ja	LBB0_5
## %bb.6:
	addl	$-31, %r12d
	movl	%r12d, %esi
LBB0_7:
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_put_bits
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.8:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_sbits                      ## TAILCALL
LBB0_1:
	cmpl	$32, %ebx
	jl	LBB0_2
## %bb.9:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_put_bits
	leal	-31(%rbx), %esi
	cmpl	$62, %ebx
	movl	%esi, %ebx
	ja	LBB0_10
	jmp	LBB0_11
LBB0_2:
	movl	%ebx, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_11:
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_put_bits
	decl	%r14d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_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 set_ur_golomb_jpegls
_set_ur_golomb_jpegls:                  ; @set_ur_golomb_jpegls
	.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	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mvn	w8, w1
	lsr	w0, w8, #31
	bl	_av_assert2
	asr	w8, w19, w21
	add	w1, w8, #1
	cmp	w1, w23
	b.ge	LBB0_7
; %bb.1:
	cmp	w8, #31
	b.lt	LBB0_5
; %bb.2:
	add	w22, w8, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #31
	mov	w2, #0
	bl	_put_bits
	sub	w22, w22, #31
	cmp	w22, #62
	b.hi	LBB0_3
; %bb.4:
	sub	w1, w22, #31
LBB0_5:
	mov	x0, x20
	mov	w2, #1
	bl	_put_bits
	cbz	w21, LBB0_11
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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	_put_sbits
LBB0_7:
	cmp	w23, #32
	b.lt	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #31
	mov	w2, #0
	bl	_put_bits
	sub	w1, w23, #31
	cmp	w23, #62
	mov	x23, x1
	b.hi	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	x1, x23
LBB0_10:
	mov	x0, x20
	mov	w2, #1
	bl	_put_bits
	sub	w2, w19, #1
	mov	x0, x20
	mov	x1, x22
	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	_put_bits
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_ur_golomb_jpegls
.subsections_via_symbols
