	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_hrd
_decode_hrd:                            ## @decode_hrd
	.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	%edx, %r13d
	movq	%rdi, %r15
	movl	$0, %r14d
	movl	$0, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%ebx, %ecx
	movl	%eax, %ebx
	movl	%ecx, %eax
	orl	%ebx, %eax
	movl	$0, %r14d
	movl	$0, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jne	LBB0_2
LBB0_5:
	testl	%r13d, %r13d
	jg	LBB0_6
	jmp	LBB0_16
LBB0_2:
	movl	%ecx, %r14d
	movq	%r15, %rdi
	callq	_get_bits1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_skip_bits
LBB0_4:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_skip_bits
	movl	%ebx, %r12d
	testl	%r13d, %r13d
	jg	LBB0_6
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	decl	%r13d
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_get_ue_golomb_long
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_get_ue_golomb_long
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	cmpl	$31, %eax
	ja	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_decode_sublayer_hrd
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_decode_sublayer_hrd
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_get_bits1
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_10
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%ebx, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nb_cpb %d invalid\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_hrd
_decode_hrd:                            ; @decode_hrd
	.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, x2
	mov	x20, x0
	cbz	w1, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_get_bits1
	mov	x21, x0
	mov	x0, x20
	bl	_get_bits1
	orr	w8, w21, w0
	cbz	w8, LBB0_5
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_get_bits1
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #8
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #5
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #1
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #5
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #4
	bl	_skip_bits
LBB0_4:
	mov	x0, x20
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #5
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #5
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #5
	bl	_skip_bits
	cmp	w19, #1
	b.ge	LBB0_8
	b	LBB0_6
LBB0_5:
	mov	w21, #0
	mov	w22, #0
	mov	w23, #0
	cmp	w19, #1
	b.ge	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_19
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	subs	w19, w19, #1
	b.eq	LBB0_6
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbz	w0, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_get_ue_golomb_long
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_get_ue_golomb_long
	add	w24, w0, #1
	cmp	w0, #31
	b.hi	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	w21, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_decode_sublayer_hrd
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w22, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_decode_sublayer_hrd
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbz	w0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w24, #1
	cbnz	w21, LBB0_13
	b	LBB0_14
LBB0_18:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x3, x24
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_19:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nb_cpb %d invalid\n"

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