	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_PAT
_decode_PAT:                            ## @decode_PAT
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	12(%rdi), %r13d
	shrl	$4, %r13d
	andl	$3, %r13d
	je	LBB0_22
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$2, %r13d
	je	LBB0_2
## %bb.3:
	cmpl	$3, %r13d
	jne	LBB0_4
## %bb.5:
	movl	16(%r15), %eax
	xorl	%r13d, %r13d
	cmpl	$183, %eax
	jg	LBB0_22
## %bb.6:
	incl	%eax
	jmp	LBB0_7
LBB0_2:
	movl	$184, %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	movl	$1, %r13d
	testb	$64, 4(%r15)
	je	LBB0_22
## %bb.8:
	movslq	%eax, %r13
	movslq	16(%r15,%r13,4), %r12
	movl	$184, %ebx
	subl	%r13d, %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.10:
	leaq	1(%r12), %rcx
	subl	%ecx, %ebx
	cmpl	$1025, %ebx                     ## imm = 0x401
	jb	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
	xorl	%r13d, %r13d
	jmp	LBB0_22
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_12:
	movslq	%eax, %r13
	leaq	(%r15,%r13,4), %rax
	leaq	(%rax,%rcx,4), %rsi
	addq	$16, %rsi
	leaq	-1072(%rbp), %rdi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_13:
	movl	%ebx, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-1072, %rdi                    ## imm = 0xFBD0
	leaq	(%r15,%r13,4), %rsi
	addq	$20, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	leaq	-1084(%rbp), %r12
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_bits_init
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bits_get
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_bits_get
	movq	%r12, %rdi
	movl	$12, %esi
	callq	_bits_get
	movq	%rax, -1080(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_bits_get
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_bits_get
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_bits_get
	movl	$1, %r13d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_bits_get
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bits_get
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bits_get
	testb	%bl, %bl
	je	LBB0_14
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r13d, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	$0, (%r14)
	movq	-1080(%rbp), %rax               ## 8-byte Reload
	addl	$-9, %eax
	movq	%rax, -1080(%rbp)               ## 8-byte Spill
	je	LBB0_22
## %bb.15:
	movq	_kMaxNumberPMTStreams@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.16:
	movl	$4, %r15d
	leaq	-1084(%rbp), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_bits_get
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	%ebx, (%rcx,%rax,8)
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_bits_get
	movq	%r12, %rdi
	movl	$13, %esi
	callq	_bits_get
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movl	%eax, 4(%rdx,%rcx,8)
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r14), %rcx
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rcx
	movq	%rcx, (%r14)
	cmpl	-1080(%rbp), %r15d              ## 4-byte Folded Reload
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	addl	$4, %r15d
	movq	_kMaxNumberPMTStreams@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jb	LBB0_17
	jmp	LBB0_22
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decode_PAT - Bad program section length (> 1024)"

	.comm	_kMaxNumberPMTStreams,8,3       ## @kMaxNumberPMTStreams
	.no_dead_strip	_decode_PAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_PAT
_decode_PAT:                            ; @decode_PAT
	.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
	sub	sp, sp, #1040
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w8, [x0, #12]
	ubfx	w0, w8, #4, #2
	cbz	w0, LBB0_15
; %bb.1:
	mov	x19, x1
	cmp	w0, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #16]
	cmp	w8, #183
	b.le	LBB0_7
; %bb.4:
	mov	w0, #0
	b	LBB0_15
LBB0_5:
	mov	w8, #184
	ldrb	w9, [x20, #4]
	tbnz	w9, #6, LBB0_8
	b	LBB0_14
LBB0_6:
	mov	w8, #0
	ldrb	w9, [x20, #4]
	tbnz	w9, #6, LBB0_8
	b	LBB0_14
LBB0_7:
	add	w8, w8, #1
	ldrb	w9, [x20, #4]
	tbz	w9, #6, LBB0_14
LBB0_8:
	sxtw	x23, w8
	add	x8, x20, w8, sxtw #2
	ldr	w21, [x8, #16]
	mov	w8, #184
	sub	w9, w8, w23
	cmp	w9, #0
	b.le	LBB0_11
; %bb.9:
	add	w8, w21, #1
	sub	w22, w9, w8
	cmp	w22, #1025
	b.lo	LBB0_12
; %bb.10:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	mov	w0, #0
	b	LBB0_15
LBB0_11:
	mov	w22, #0
	b	LBB0_13
LBB0_12:
	add	x9, x20, x23, lsl #2
	add	x8, x9, w8, sxtw #2
	add	x1, x8, #16
	add	x0, sp, #8
	mov	x2, x22
	bl	_memcpy
LBB0_13:
	add	x8, sp, #8
	add	x0, x8, w22, uxtw
	add	x8, x20, x23, lsl #2
	add	x1, x8, #20
	mov	x2, x21
	bl	_memcpy
	add	x0, sp, #4
	add	x1, sp, #8
	mov	x2, x22
	mov	w3, #0
	bl	_bits_init
	add	x0, sp, #4
	mov	w1, #8
	bl	_bits_get
	mov	x21, x0
	add	x0, sp, #4
	mov	w1, #4
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #12
	bl	_bits_get
	mov	x20, x0
	add	x0, sp, #4
	mov	w1, #16
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #2
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #5
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #1
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #8
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #8
	bl	_bits_get
	tst	x21, #0xff
	b.eq	LBB0_17
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.16:
	add	sp, sp, #1040
	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
LBB0_17:
	str	xzr, [x19]
	subs	w21, w20, #9
	b.eq	LBB0_14
; %bb.18:
Lloh8:
	adrp	x22, _kMaxNumberPMTStreams@GOTPAGE
Lloh9:
	ldr	x22, [x22, _kMaxNumberPMTStreams@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.19:
	mov	w23, #4
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	mov	w1, #16
	bl	_bits_get
	mov	x20, x0
	ldp	x9, x8, [x19]
	lsl	x9, x9, #3
	str	w20, [x8, x9]
	add	x0, sp, #4
	mov	w1, #3
	bl	_bits_get
	add	x0, sp, #4
	mov	w1, #13
	bl	_bits_get
	cbz	w20, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldp	x8, x9, [x19]
	add	x9, x9, x8, lsl #3
	str	w0, [x9, #4]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19]
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x8, #1
	str	x8, [x19]
	cmp	w23, w21
	b.hs	LBB0_14
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x22]
	add	w23, w23, #4
	cmp	x8, x9
	b.lo	LBB0_20
	b	LBB0_14
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decode_PAT - Bad program section length (> 1024)"

	.comm	_kMaxNumberPMTStreams,8,3       ; @kMaxNumberPMTStreams
	.no_dead_strip	_decode_PAT
.subsections_via_symbols
