	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pti_control_frame_built_and_sent
_pti_control_frame_built_and_sent:      ## @pti_control_frame_built_and_sent
	.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, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TASK_COMM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_CONTROL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_CONTROL_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%r13, %r13
	jne	LBB0_5
## %bb.1:
	movq	_CONTROL_FRAME_LEN@GOTPCREL(%rip), %r13
	movq	_TASK_COMM_LEN@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	callq	_in_interrupt
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strncpy
	jmp	LBB0_4
LBB0_2:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_get_task_comm
LBB0_4:
	movslq	(%rbx), %rax
	movb	$0, -1(%rax,%r15)
	movl	(%r13), %ebx
	movq	%r15, %r13
LBB0_5:
	movq	_pti_control_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	incl	%ecx
	andl	$127, %ecx
	movl	%ecx, (%rax)
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %r9
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strlen
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_pti_write_to_aperture
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_COMM_LEN,4,2              ## @TASK_COMM_LEN
	.comm	_CONTROL_ID,4,2                 ## @CONTROL_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%3d %3d %s"

	.comm	_CONTROL_FRAME_LEN,4,2          ## @CONTROL_FRAME_LEN
	.comm	_current,4,2                    ## @current
L_.str.1:                               ## @.str.1
	.asciz	"Interrupt"

	.comm	_pti_control_channel,4,2        ## @pti_control_channel
	.no_dead_strip	_pti_control_frame_built_and_sent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pti_control_frame_built_and_sent
_pti_control_frame_built_and_sent:      ; @pti_control_frame_built_and_sent
	.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, #16
	mov	x5, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _TASK_COMM_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TASK_COMM_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _CONTROL_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CONTROL_ID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stur	w8, [x29, #-60]
Lloh10:
	adrp	x23, _CONTROL_FRAME_LEN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _CONTROL_FRAME_LEN@GOTPAGEOFF]
	ldr	w1, [x23]
	lsl	x8, x1, #2
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cbnz	x5, LBB0_5
; %bb.1:
	bl	_in_interrupt
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w2, [x22]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strncpy
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x8, _current@GOTPAGE
Lloh17:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_get_task_comm
LBB0_4:
	ldrsw	x8, [x22]
	add	x8, x8, x21
	sturb	wzr, [x8, #-1]
	ldr	w1, [x23]
	mov	x5, x21
LBB0_5:
Lloh19:
	adrp	x8, _pti_control_channel@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pti_control_channel@GOTPAGEOFF]
	ldr	w9, [x8]
	stur	w9, [x29, #-64]
	add	w9, w9, #1
	and	w9, w9, #0x7f
	str	w9, [x8]
	ldp	w4, w3, [x19]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #64
	mov	x1, x20
	bl	_pti_write_to_aperture
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_COMM_LEN,4,2              ; @TASK_COMM_LEN
	.comm	_CONTROL_ID,4,2                 ; @CONTROL_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%3d %3d %s"

	.comm	_CONTROL_FRAME_LEN,4,2          ; @CONTROL_FRAME_LEN
	.comm	_current,4,2                    ; @current
l_.str.1:                               ; @.str.1
	.asciz	"Interrupt"

	.comm	_pti_control_channel,4,2        ; @pti_control_channel
	.no_dead_strip	_pti_control_frame_built_and_sent
.subsections_via_symbols
