	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_register_cpl_handler        ## -- Begin function t3_register_cpl_handler
	.p2align	4, 0x90
_t3_register_cpl_handler:               ## @t3_register_cpl_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_NUM_CPL_CMDS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jbe	LBB0_4
## %bb.1:
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	movq	_do_bad_cpl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
LBB0_3:
	movq	_cpl_handlers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	%rsi, (%rcx,%rax,8)
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CPL_CMDS,4,2               ## @NUM_CPL_CMDS
	.comm	_do_bad_cpl,8,3                 ## @do_bad_cpl
	.comm	_cpl_handlers,8,3               ## @cpl_handlers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T3C: handler registration for opcode %x failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_register_cpl_handler        ; -- Begin function t3_register_cpl_handler
	.p2align	2
_t3_register_cpl_handler:               ; @t3_register_cpl_handler
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _NUM_CPL_CMDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_CPL_CMDS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _do_bad_cpl@GOTPAGE
Lloh4:
	ldr	x9, [x9, _do_bad_cpl@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x1, #0
	csel	x9, x9, x1, eq
Lloh6:
	adrp	x10, _cpl_handlers@GOTPAGE
Lloh7:
	ldr	x10, [x10, _cpl_handlers@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	x9, [x10, w8, uxtw #3]
	ret
LBB0_2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CPL_CMDS,4,2               ; @NUM_CPL_CMDS
	.comm	_do_bad_cpl,8,3                 ; @do_bad_cpl
	.comm	_cpl_handlers,8,3               ; @cpl_handlers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T3C: handler registration for opcode %x failed\n"

.subsections_via_symbols
