	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_for_golomb
_search_for_golomb:                     ## @search_for_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leal	-1(%r9), %ecx
	testl	%edx, %edx
	je	LBB0_1
## %bb.4:
	movl	%edx, %r10d
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%r10d, %r15d
	negl	%r15d
	movl	$1, %r14d
	subl	%r10d, %r14d
	leal	-1(%rcx), %r12d
	xorl	%eax, %eax
	movl	$1, %r8d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rcx,%rax), %ebx
	btl	%ebx, %esi
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r11d, %r11d
	cmpl	%eax, %r14d
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	(%r12,%rax), %r13d
	xorl	%ebx, %ebx
	btl	%r13d, %esi
	setb	%bl
	leal	(%rbx,%r8,2), %r8d
	addl	$-2, %eax
	cmpl	%eax, %r15d
	jne	LBB0_6
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r8d, %r12d
	movq	(%rdi), %r13
	movq	8(%rdi), %r11
	leal	(%rcx,%rax), %r15d
	decl	%r15d
	decl	%r12d
	movl	%r12d, (%r13,%r11,4)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%eax, %r14d
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ebx
	subl	%r8d, %ebx
	addl	%eax, %r10d
	addl	$-2, %r10d
	btl	%r15d, %esi
	leal	-2(%rcx,%rax), %r15d
	cmovael	%r12d, %ebx
	movl	%ebx, (%r13,%r11,4)
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	%eax, %r10d
	decl	%r10d
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r11
	movq	%r11, 8(%rdi)
	testl	%r10d, %r10d
	je	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RSIZE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r15d, %ecx
	jmp	LBB0_5
LBB0_1:
	xorl	%r11d, %r11d
LBB0_2:
	notl	%ecx
	addl	%r9d, %ecx
	shll	%cl, %esi
	movl	%esi, 16(%rdi)
	subl	%ecx, %edx
	movl	%edx, 20(%rdi)
	movl	%r11d, 24(%rdi)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$1, %r11d
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_RSIZE_BITS,4,2                 ## @RSIZE_BITS
	.no_dead_strip	_search_for_golomb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_for_golomb
_search_for_golomb:                     ; @search_for_golomb
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x10, _RSIZE_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RSIZE_BITS@GOTPAGEOFF]
	ldr	w9, [x10]
	sub	w8, w9, #1
	cbz	w2, LBB0_12
; %bb.1:
	mov	w11, #1
	mov	x12, x2
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	w13, #0
	neg	w16, w12
	sub	w15, w11, w12
	sub	w17, w8, #1
	mov	w14, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w3, w8, w13
	lsr	w4, w1, w3
	tbnz	w4, #0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cmp	w15, w13
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	add	w3, w17, w13
	lsr	w3, w1, w3
	bfi	w3, w14, #1, #31
	sub	w13, w13, #2
	mov	x14, x3
	cmp	w16, w13
	b.ne	LBB0_3
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x17, x16, [x0]
	sub	w3, w3, #1
	sub	w4, w14, #1
	str	w4, [x17, x16, lsl #2]
	cbz	w4, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w15, w13
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w12, w13
	sub	w12, w9, #2
	add	w8, w8, w13
	sub	w8, w8, #2
	sub	w9, w11, w14
	lsr	w13, w1, w3
	tst	w13, #0x1
	csel	w9, w4, w9, eq
	str	w9, [x17, x16, lsl #2]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w12, w13
	sub	w12, w8, #1
	mov	x8, x3
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x16, #1
	str	x9, [x0, #8]
	cbz	w12, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x10]
	b	LBB0_2
LBB0_12:
	mov	w10, #0
LBB0_13:
	mvn	w8, w8
	add	w8, w9, w8
	sub	w9, w2, w8
	lsl	w8, w1, w8
	stp	w8, w9, [x0, #16]
	str	w10, [x0, #24]
LBB0_14:
	ret
LBB0_15:
	mov	w10, #1
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RSIZE_BITS,4,2                 ; @RSIZE_BITS
	.no_dead_strip	_search_for_golomb
.subsections_via_symbols
