	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctlclrtrap                     ## -- Begin function ctlclrtrap
	.p2align	4, 0x90
_ctlclrtrap:                            ## @ctlclrtrap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ebx
	callq	_ctlfindtrap
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	_TRAP_CONFIGURED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_TRAP_TYPE_CONFIG@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_4
LBB0_3:
	movl	$0, (%rcx)
	movq	_num_ctl_traps@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRAP_CONFIGURED,4,2            ## @TRAP_CONFIGURED
	.comm	_TRAP_TYPE_CONFIG,4,2           ## @TRAP_TYPE_CONFIG
	.comm	_num_ctl_traps,4,2              ## @num_ctl_traps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctlclrtrap                     ; -- Begin function ctlclrtrap
	.p2align	2
_ctlclrtrap:                            ; @ctlclrtrap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_ctlfindtrap
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TRAP_CONFIGURED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRAP_CONFIGURED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _TRAP_TYPE_CONFIG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRAP_TYPE_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x0]
Lloh6:
	adrp	x8, _num_ctl_traps@GOTPAGE
Lloh7:
	ldr	x8, [x8, _num_ctl_traps@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TRAP_CONFIGURED,4,2            ; @TRAP_CONFIGURED
	.comm	_TRAP_TYPE_CONFIG,4,2           ; @TRAP_TYPE_CONFIG
	.comm	_num_ctl_traps,4,2              ; @num_ctl_traps
.subsections_via_symbols
