	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_obu_bit_length
_get_obu_bit_length:                    ## @get_obu_bit_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_AV1_OBU_TILE_GROUP@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_AV1_OBU_FRAME@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_9
## %bb.2:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movl	%ebx, %ebx
	movq	%rbx, %rdx
	shlq	$32, %rdx
	addq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rbx), %rsi
	leaq	(%rax,%rcx), %rdx
	cmpl	$0, -4(%rdi,%rbx,4)
	movq	%rsi, %rbx
	je	LBB0_3
## %bb.5:
	incl	%esi
	movl	%esi, %ebx
	jmp	LBB0_6
LBB0_9:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%ebx, %ecx
	jl	LBB0_14
## %bb.10:
	shll	$3, %ebx
	jmp	LBB0_13
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_6:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	cmpl	%ebx, %edx
	jge	LBB0_7
LBB0_14:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	sarq	$30, %rax
	movl	(%rdi,%rax), %edi
	shll	$3, %ebx
	testl	%edi, %edi
	je	LBB0_13
## %bb.8:
	callq	_ff_ctz
	notl	%eax
	addl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV1_OBU_TILE_GROUP,4,2         ## @AV1_OBU_TILE_GROUP
	.comm	_AV1_OBU_FRAME,4,2              ## @AV1_OBU_FRAME
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_get_obu_bit_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_obu_bit_length
_get_obu_bit_length:                    ; @get_obu_bit_length
	.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
Lloh0:
	adrp	x8, _AV1_OBU_TILE_GROUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV1_OBU_TILE_GROUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV1_OBU_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV1_OBU_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w1, w8, asr #3
	b.gt	LBB0_9
; %bb.2:
	lsl	w19, w1, #3
	b	LBB0_13
LBB0_3:
	mov	w8, w1
	mov	x10, #-4294967296
	add	x12, x10, x8, lsl #32
	sub	x11, x0, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x12
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x13, x8, #1
	ldr	w14, [x11, x8, lsl #2]
	add	x12, x9, x10
	mov	x8, x13
	cbz	w14, LBB0_4
; %bb.6:
	add	w8, w13, #1
	b	LBB0_8
LBB0_7:
	cbz	w8, LBB0_12
LBB0_8:
Lloh9:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	cmp	w8, w10, asr #3
	b.le	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _ERANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_10:
	asr	x9, x9, #30
	ldr	w0, [x0, x9]
	lsl	w19, w8, #3
	cbz	w0, LBB0_13
; %bb.11:
	bl	_ff_ctz
	mvn	w8, w0
	add	w19, w19, w8
	b	LBB0_13
LBB0_12:
	mov	w19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV1_OBU_TILE_GROUP,4,2         ; @AV1_OBU_TILE_GROUP
	.comm	_AV1_OBU_FRAME,4,2              ; @AV1_OBU_FRAME
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_get_obu_bit_length
.subsections_via_symbols
