	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lkdtm_register_cpoint
_lkdtm_register_cpoint:                 ## @lkdtm_register_cpoint
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_lkdtm_kprobe@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_unregister_kprobe
LBB0_4:
	movq	_lkdtm_crashpoint@GOTPCREL(%rip), %r12
	movq	%rbx, (%r12)
	movq	_lkdtm_crashtype@GOTPCREL(%rip), %r13
	movq	%r14, (%r13)
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	callq	_register_kprobe
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	$0, (%r15)
	movq	$0, (%r12)
	movq	$0, (%r13)
	jmp	LBB0_6
LBB0_1:
	movq	%r14, %rdi
	callq	_lkdtm_do_action
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lkdtm_kprobe,8,3               ## @lkdtm_kprobe
	.comm	_lkdtm_crashpoint,8,3           ## @lkdtm_crashpoint
	.comm	_lkdtm_crashtype,8,3            ## @lkdtm_crashtype
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't register kprobe %s\n"

	.no_dead_strip	_lkdtm_register_cpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lkdtm_register_cpoint
_lkdtm_register_cpoint:                 ; @lkdtm_register_cpoint
	.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
	mov	x20, x1
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _lkdtm_kprobe@GOTPAGE
Lloh1:
	ldr	x21, [x21, _lkdtm_kprobe@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_unregister_kprobe
LBB0_3:
Lloh2:
	adrp	x22, _lkdtm_crashpoint@GOTPAGE
Lloh3:
	ldr	x22, [x22, _lkdtm_crashpoint@GOTPAGEOFF]
	str	x19, [x22]
Lloh4:
	adrp	x23, _lkdtm_crashtype@GOTPAGE
Lloh5:
	ldr	x23, [x23, _lkdtm_crashtype@GOTPAGEOFF]
	str	x20, [x23]
	str	x19, [x21]
	mov	x0, x19
	bl	_register_kprobe
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.4:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	str	xzr, [x21]
	str	xzr, [x22]
	str	xzr, [x23]
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_lkdtm_do_action
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_lkdtm_kprobe,8,3               ; @lkdtm_kprobe
	.comm	_lkdtm_crashpoint,8,3           ; @lkdtm_crashpoint
	.comm	_lkdtm_crashtype,8,3            ; @lkdtm_crashtype
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't register kprobe %s\n"

	.no_dead_strip	_lkdtm_register_cpoint
.subsections_via_symbols
