	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carp_modevent
_carp_modevent:                         ## @carp_modevent
	.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
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_carp_mod_load                  ## TAILCALL
LBB0_3:
	movq	_carp_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_carp_list@GOTPCREL(%rip), %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_carp_mod_cleanup
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_carp_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_carp_mtx,4,2                   ## @carp_mtx
	.comm	_carp_list,4,2                  ## @carp_list
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_carp_modevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carp_modevent
_carp_modevent:                         ; @carp_modevent
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_carp_mod_load
LBB0_3:
Lloh0:
	adrp	x0, _carp_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _carp_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x0, _carp_list@GOTPAGE
Lloh3:
	ldr	x0, [x0, _carp_list@GOTPAGEOFF]
	bl	_LIST_EMPTY
	cbz	w0, LBB0_6
; %bb.4:
	bl	_carp_mod_cleanup
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, _carp_mtx@GOTPAGE
Lloh7:
	ldr	x0, [x0, _carp_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_carp_mtx,4,2                   ; @carp_mtx
	.comm	_carp_list,4,2                  ; @carp_list
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_carp_modevent
.subsections_via_symbols
