	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_program_map
_build_program_map:                     ## @build_program_map
	.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
	movq	%rsi, %r14
	movl	12(%rdi), %esi
	movl	%esi, %ebx
	shrl	$4, %ebx
	andl	$3, %ebx
	je	LBB0_21
## %bb.1:
	movq	%rdi, %r15
	cmpl	$2, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$3, %ebx
	jne	LBB0_4
## %bb.5:
	movl	16(%r15), %r13d
	xorl	%ebx, %ebx
	cmpl	$183, %r13d
	jg	LBB0_21
## %bb.6:
	incl	%r13d
	jmp	LBB0_7
LBB0_2:
	movl	$184, %r13d
	jmp	LBB0_7
LBB0_4:
	xorl	%r13d, %r13d
LBB0_7:
	movl	4(%r15), %eax
	andl	$64, %eax
	jne	LBB0_8
## %bb.12:
	andl	$15, %esi
	movl	4(%r14), %edx
	incl	%edx
	xorl	%ebx, %ebx
	cmpl	%esi, %edx
	je	LBB0_9
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
	jmp	LBB0_20
LBB0_8:
	movslq	%r13d, %rcx
	movl	16(%r15,%rcx,4), %ebx
	incl	%ebx
	movl	$0, (%r14)
	movl	12(%r15), %esi
	andl	$15, %esi
LBB0_9:
	shrl	$6, %eax
	movl	%esi, 4(%r14)
	orl	%eax, 8(%r14)
	je	LBB0_11
## %bb.10:
	movl	$184, %r12d
	subl	%r13d, %r12d
	subl	%ebx, %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.14:
	movq	16(%r14), %rdi
	movl	(%r14), %esi
	addl	%r12d, %esi
	callq	_realloc
	movq	%rax, 16(%r14)
	movl	(%r14), %ecx
	leal	(%rax,%rcx,4), %edi
	movslq	%r13d, %rax
	leaq	(%r15,%rax,4), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$16, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	addl	(%r14), %r12d
	movl	%r12d, (%r14)
	jmp	LBB0_15
LBB0_11:
	movl	(%r14), %r12d
LBB0_15:
	xorl	%ebx, %ebx
	cmpl	$4, %r12d
	jl	LBB0_21
## %bb.16:
	movq	16(%r14), %rdi
	movl	4(%rdi), %eax
	shll	$8, %eax
	addl	8(%rdi), %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	incl	%eax
	cmpl	%eax, %r12d
	jbe	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	cmpl	$2, (%rdi)
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_decode_program_map
	movl	%eax, %ebx
	movq	16(%r14), %rdi
LBB0_19:
	callq	_free
	movq	$0, 16(%r14)
	movl	$0, (%r14)
	movl	$0, 8(%r14)
	testl	%ebx, %ebx
	jne	LBB0_21
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"build_program_map - Continuity Counter %d out of sequence - expected %d"

	.no_dead_strip	_build_program_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_program_map
_build_program_map:                     ; @build_program_map
	.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
	ldr	w8, [x0, #12]
	ubfx	w21, w8, #4, #2
	cbz	w21, LBB0_20
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cmp	w21, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #3
	b.ne	LBB0_7
; %bb.3:
	ldr	w9, [x20, #16]
	cmp	w9, #183
	b.gt	LBB0_19
; %bb.4:
	add	w22, w9, #1
	ldr	w9, [x20, #4]
	tbnz	w9, #6, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w22, #184
	ldr	w9, [x20, #4]
	tbz	w9, #6, LBB0_8
LBB0_6:
	add	x8, x20, w22, sxtw #2
	ldr	w8, [x8, #16]
	add	w23, w8, #1
	str	wzr, [x19]
	ldr	w8, [x20, #12]
	and	w1, w8, #0xf
	b	LBB0_10
LBB0_7:
	mov	w22, #0
	ldr	w9, [x20, #4]
	tbnz	w9, #6, LBB0_6
LBB0_8:
	and	w1, w8, #0xf
	ldr	w8, [x19, #4]
	add	w2, w8, #1
	cmp	w2, w1
	b.ne	LBB0_16
; %bb.9:
	mov	w23, #0
LBB0_10:
	ubfx	w8, w9, #6, #1
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	stp	w1, w8, [x19, #4]
	mov	w9, #184
	add	w10, w22, w23
	sub	w21, w9, w10
	cmp	w8, #0
	ccmp	w21, #0, #4, ne
	b.gt	LBB0_12
; %bb.11:
	ldr	w8, [x19]
	cmp	w8, #4
	b.ge	LBB0_13
	b	LBB0_19
LBB0_12:
	ldr	x0, [x19, #16]
	ldr	w8, [x19]
	add	w1, w8, w21
	bl	_realloc
	str	x0, [x19, #16]
	ldr	w8, [x19]
	add	w0, w0, w8, lsl #2
	add	x8, x20, w22, sxtw #2
	add	x8, x8, w23, sxtw #2
	add	x1, x8, #16
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_19
LBB0_13:
	ldr	x0, [x19, #16]
	ldp	w9, w10, [x0, #4]
	add	w9, w10, w9, lsl #8
	and	w9, w9, #0xfff
	add	w9, w9, #1
	cmp	w8, w9
	b.ls	LBB0_19
; %bb.14:
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_decode_program_map
	mov	x21, x0
	ldr	x0, [x19, #16]
	b	LBB0_18
LBB0_16:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	b	LBB0_19
LBB0_17:
	mov	w21, #0
LBB0_18:
	bl	_free
	str	xzr, [x19, #16]
	str	wzr, [x19]
	str	wzr, [x19, #8]
	cbnz	w21, LBB0_20
LBB0_19:
	mov	w21, #0
LBB0_20:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"build_program_map - Continuity Counter %d out of sequence - expected %d"

	.no_dead_strip	_build_program_map
.subsections_via_symbols
