	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_device_mod_event
_ng_device_mod_event:                   ## @ng_device_mod_event
	.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_4
## %bb.2:
	movq	_MAX_NGD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_new_unrhdr
	movq	_ngd_unit@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_3:
	movq	_ngd_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_delete_unrhdr
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NGD,4,2                    ## @MAX_NGD
	.comm	_ngd_unit,4,2                   ## @ngd_unit
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ng_device_mod_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_device_mod_event
_ng_device_mod_event:                   ; @ng_device_mod_event
	.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_4
; %bb.2:
Lloh0:
	adrp	x8, _MAX_NGD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NGD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	mov	x2, #0
	bl	_new_unrhdr
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _ngd_unit@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ngd_unit@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _ngd_unit@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ngd_unit@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_delete_unrhdr
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NGD,4,2                    ; @MAX_NGD
	.comm	_ngd_unit,4,2                   ; @ngd_unit
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ng_device_mod_event
.subsections_via_symbols
