	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngp_modevent
_ngp_modevent:                          ## @ngp_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_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movl	$4, %edi
	movl	$4, %esi
	callq	_max
	movq	_UMA_ALIGN_PTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r10
	callq	_uma_zcreate
	addq	$16, %rsp
	movq	_ngp_zone@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
	jmp	LBB0_6
LBB0_4:
	movq	_ngp_zone@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_uma_zdestroy
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ng_pipe"

	.comm	_UMA_ALIGN_PTR,4,2              ## @UMA_ALIGN_PTR
	.comm	_ngp_zone,8,3                   ## @ngp_zone
L_.str.1:                               ## @.str.1
	.asciz	"ng_pipe: couldn't allocate descriptor zone"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ngp_modevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngp_modevent
_ngp_modevent:                          ; @ngp_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_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #4
	mov	w1, #4
	bl	_max
	mov	x1, x0
Lloh0:
	adrp	x8, _UMA_ALIGN_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMA_ALIGN_PTR@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	w7, #0
	bl	_uma_zcreate
	mov	x8, x0
	mov	w0, #0
Lloh5:
	adrp	x9, _ngp_zone@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ngp_zone@GOTPAGEOFF]
Lloh7:
	str	x8, [x9]
	cbz	x8, LBB0_6
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh8:
	adrp	x8, _ngp_zone@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ngp_zone@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	bl	_uma_zdestroy
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ng_pipe"

	.comm	_UMA_ALIGN_PTR,4,2              ; @UMA_ALIGN_PTR
	.comm	_ngp_zone,8,3                   ; @ngp_zone
l_.str.1:                               ; @.str.1
	.asciz	"ng_pipe: couldn't allocate descriptor zone"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ngp_modevent
.subsections_via_symbols
