	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hap_parse_section_header    ## -- Begin function ff_hap_parse_section_header
	.p2align	4, 0x90
_ff_hap_parse_section_header:           ## @ff_hap_parse_section_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_bytestream2_get_bytes_left
	cmpl	$3, %eax
	jle	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_bytestream2_get_le24
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, (%r15)
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$3, %eax
	jle	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r15d
	movl	%eax, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%eax, %r15d
	jg	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jns	LBB0_7
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hap_parse_section_header    ; -- Begin function ff_hap_parse_section_header
	.p2align	2
_ff_hap_parse_section_header:           ; @ff_hap_parse_section_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_bytestream2_get_bytes_left
	cmp	w0, #3
	b.le	LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_bytestream2_get_le24
	str	w0, [x19]
	mov	x0, x20
	bl	_bytestream2_get_byte
	str	w0, [x21]
	ldr	w21, [x19]
	cbnz	w21, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w0, #3
	b.le	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_bytestream2_get_le32
	mov	x21, x0
	str	w0, [x19]
LBB0_4:
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w21, w0
	b.gt	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
