	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pac
_handle_pac:                            ## @handle_pac
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	andl	$7, %esi
	movl	%edx, %eax
	shrl	$5, %eax
	andl	$1, %eax
	leal	(%rax,%rsi,2), %ebx
	callq	_get_writing_screen
	cmpl	$1, %ebx
	jne	LBB0_1
## %bb.4:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_1:
	movq	%rax, %r14
	movl	%ebx, %eax
	leaq	_handle_pac.row_map(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	andl	$31, %r15d
	decl	%eax
	movl	%eax, (%r12)
	movq	_pac2_attribs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r12)
	movq	(%rax,%r15,8), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, 24(%r12)
	movq	_CCSET_BASIC_AMERICAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r12)
	movq	$0, 8(%r12)
	movq	(%rax,%r15,8), %rax
	movl	16(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_write_char
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @handle_pac.row_map
_handle_pac.row_map:
	.long	11                              ## 0xb
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	12                              ## 0xc
	.long	13                              ## 0xd
	.long	14                              ## 0xe
	.long	15                              ## 0xf
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	8                               ## 0x8
	.long	9                               ## 0x9
	.long	10                              ## 0xa

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pac index encountered\n"

	.comm	_pac2_attribs,8,3               ## @pac2_attribs
	.comm	_CCSET_BASIC_AMERICAN,4,2       ## @CCSET_BASIC_AMERICAN
	.no_dead_strip	_handle_pac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pac
_handle_pac:                            ; @handle_pac
	.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, x0
	ubfiz	w22, w1, #1, #3
	bfxil	w22, w2, #5, #1
	bl	_get_writing_screen
	cmp	w22, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_av_log
LBB0_2:
Lloh5:
	adrp	x8, _handle_pac.row_map@PAGE
Lloh6:
	add	x8, x8, _handle_pac.row_map@PAGEOFF
	ldr	w8, [x8, w22, uxtw #2]
	and	w9, w21, #0x1f
	sub	w8, w8, #1
Lloh7:
	adrp	x10, _pac2_attribs@GOTPAGE
Lloh8:
	ldr	x10, [x10, _pac2_attribs@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	lsl	x9, x9, #3
	ldr	x11, [x10, x9]
	ldr	x11, [x11]
	str	x11, [x19, #32]
	ldr	x11, [x10, x9]
	str	w8, [x19]
	ldr	x8, [x11, #8]
	str	x8, [x19, #24]
Lloh10:
	adrp	x8, _CCSET_BASIC_AMERICAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCSET_BASIC_AMERICAN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	ldr	x8, [x10, x9]
	ldr	w21, [x8, #16]
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #32
	bl	_write_char
	subs	w21, w21, #1
	b.ne	LBB0_4
LBB0_5:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @handle_pac.row_map
_handle_pac.row_map:
	.long	11                              ; 0xb
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	12                              ; 0xc
	.long	13                              ; 0xd
	.long	14                              ; 0xe
	.long	15                              ; 0xf
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	8                               ; 0x8
	.long	9                               ; 0x9
	.long	10                              ; 0xa

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pac index encountered\n"

	.comm	_pac2_attribs,8,3               ; @pac2_attribs
	.comm	_CCSET_BASIC_AMERICAN,4,2       ; @CCSET_BASIC_AMERICAN
	.no_dead_strip	_handle_pac
.subsections_via_symbols
