	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbsub_parse_display_definition_segment
_dvbsub_parse_display_definition_segment: ## @dvbsub_parse_display_definition_segment
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	cmpl	$4, %edx
	jg	LBB0_2
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	(%rbx), %r13
	leaq	-48(%rbp), %rdi
	callq	_bytestream_get_byte
	movl	%eax, %r12d
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	sarl	$4, %r12d
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	%r12d, (%r13)
	jne	LBB0_6
	jmp	LBB0_14
LBB0_4:
	movl	$40, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r13
	movq	%rax, (%rbx)
LBB0_6:
	movl	%r12d, (%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream_get_be16
	incq	%rax
	movq	%rax, 32(%r13)
	movq	%rbx, %rdi
	callq	_bytestream_get_be16
	incq	%rax
	movq	%rax, 24(%r13)
	cmpl	$0, 4(%r15)
	je	LBB0_8
## %bb.7:
	cmpl	$0, (%r15)
	jne	LBB0_9
LBB0_8:
	movq	32(%r13), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_13
LBB0_9:
	xorl	%ebx, %ebx
	testb	$8, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.10:
	cmpl	$12, %r14d
	jbe	LBB0_1
## %bb.11:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_bytestream_get_be16
	movq	%rax, 8(%r13)
	movq	%r14, %rdi
	callq	_bytestream_get_be16
	subq	8(%r13), %rax
	incq	%rax
	movq	%rax, 32(%r13)
	movq	%r14, %rdi
	callq	_bytestream_get_be16
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	callq	_bytestream_get_be16
	subq	16(%r13), %rax
	incq	%rax
	movq	%rax, 24(%r13)
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dvbsub_parse_display_definition_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbsub_parse_display_definition_segment
_dvbsub_parse_display_definition_segment: ; @dvbsub_parse_display_definition_segment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	x1, [sp, #8]
	cmp	w2, #4
	b.gt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_2:
	mov	x20, x2
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	x19, [x24]
	add	x0, sp, #8
	bl	_bytestream_get_byte
	mov	x22, x0
	asr	w23, w0, #4
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, w23
	b.ne	LBB0_6
	b	LBB0_10
LBB0_4:
	mov	w0, #40
	bl	_av_mallocz
	cbz	x0, LBB0_13
; %bb.5:
	mov	x19, x0
	str	x0, [x24]
LBB0_6:
	str	w23, [x19]
	stp	xzr, xzr, [x19, #8]
	add	x0, sp, #8
	bl	_bytestream_get_be16
	add	x8, x0, #1
	str	x8, [x19, #32]
	add	x0, sp, #8
	bl	_bytestream_get_be16
	add	x2, x0, #1
	str	x2, [x19, #24]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w8, [x21]
	cbnz	w8, LBB0_9
LBB0_8:
	ldr	x1, [x19, #32]
	mov	x0, x21
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_14
LBB0_9:
	tbnz	w22, #3, LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
	cmp	w20, #12
	b.ls	LBB0_1
; %bb.12:
	add	x0, sp, #8
	bl	_bytestream_get_be16
	str	x0, [x19, #8]
	add	x0, sp, #8
	bl	_bytestream_get_be16
	ldr	x8, [x19, #8]
	sub	x8, x0, x8
	add	x8, x8, #1
	str	x8, [x19, #32]
	add	x0, sp, #8
	bl	_bytestream_get_be16
	str	x0, [x19, #16]
	add	x0, sp, #8
	bl	_bytestream_get_be16
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #16]
	sub	x8, x8, x9
	add	x8, x8, #1
	str	x8, [x19, #24]
	b	LBB0_14
LBB0_13:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dvbsub_parse_display_definition_segment
.subsections_via_symbols
