	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbsub_parse_object_segment
_dvbsub_parse_object_segment:           ## @dvbsub_parse_object_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_AV_RB16
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_object
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%r14), %ebx
	movl	%ebx, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	je	LBB0_3
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_10
LBB0_3:
	movq	%rax, %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rax
	movq	%r14, %r15
	leaq	(%r14,%rax,4), %r14
	leaq	12(%r15), %rdi
	callq	_AV_RB16
	movl	%eax, %r13d
	leaq	20(%r15), %rdi
	callq	_AV_RB16
	movl	%r13d, %ecx
	movslq	%r13d, %rdx
	leaq	(%r15,%rdx,4), %rdi
	addq	$28, %rdi
	movslq	%eax, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	cmpq	%r14, %rdx
	jbe	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r12), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	movq	%r15, %rsi
	shrl	%ebx
	andl	$1, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdx
	addq	$28, %rdx
	testl	%eax, %eax
	cmovleq	%rdx, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %esi
	cmovgl	%eax, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ecx, %r14d
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_dvbsub_parse_pixel_data_block
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	movl	%ebx, %r9d
	callq	_dvbsub_parse_pixel_data_block
	movl	%r14d, %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Field data size %d+%d too large\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown object coding %d\n"

	.no_dead_strip	_dvbsub_parse_object_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_object_segment
_dvbsub_parse_object_segment:           ; @dvbsub_parse_object_segment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	mov	x0, x1
	bl	_AV_RB16
	mov	x1, x0
	mov	x0, x22
	bl	_get_object
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w23, [x21, #8]
	ubfx	w3, w23, #2, #2
	cbz	w3, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x22, x0
	add	x24, x21, w20, sxtw #2
	add	x0, x21, #12
	bl	_AV_RB16
	mov	x20, x0
	add	x0, x21, #20
	bl	_AV_RB16
                                        ; kill: def $w0 killed $w0 def $x0
	add	x21, x21, #28
	add	x8, x21, w20, sxtw #2
	add	x9, x8, w0, sxtw #2
	cmp	x9, x24
	b.ls	LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
LBB0_6:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x22, [x22]
	cbz	x22, LBB0_3
; %bb.9:
	ubfx	w23, w23, #1, #1
	cmp	w0, #0
	csel	w24, w0, w20, gt
	csel	x25, x8, x21, gt
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	mov	x5, x23
	bl	_dvbsub_parse_pixel_data_block
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x24
	mov	w4, #1
	mov	x5, x23
	bl	_dvbsub_parse_pixel_data_block
	ldr	x22, [x22]
	cbnz	x22, LBB0_10
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Field data size %d+%d too large\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown object coding %d\n"

	.no_dead_strip	_dvbsub_parse_object_segment
.subsections_via_symbols
