	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function invalidate_swrun_entry
_invalidate_swrun_entry:                ## @invalidate_swrun_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%rbx), %rsi
	movq	_NO_PID@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, %rsi
	jle	LBB0_3
## %bb.1:
	notq	%rax
	addq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_HRDBG
	movq	(%rbx), %rdi
	movq	_SWOSIndex@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_2
## %bb.7:
	movl	$16, -40(%rbp)
	movq	(%r15), %rax
	notq	%rax
	addq	%rax, %rdi
	leaq	-40(%rbp), %rsi
	callq	_kldstat
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.8:
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.9:
	movl	-28(%rbp), %edi
	callq	_kldunload
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.23:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	-28(%rbp), %rdx
	movl	-32(%rbp), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.27:
	movq	_SNMP_ERR_RES_UNAVAIL@GOTPCREL(%rip), %r14
	jmp	LBB0_20
LBB0_3:
	movq	_hr_kd@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_assert
	movq	(%r15), %rdi
	movq	_KERN_PROC_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	decq	%rdx
	leaq	-40(%rbp), %rcx
	callq	_kvm_getprocs
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	cmpl	$1, -40(%rbp)
	jne	LBB0_11
## %bb.5:
	movq	%rax, %rdi
	callq	_IS_KERNPROC
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:
	movq	_SNMP_ERR_NOT_WRITEABLE@GOTPCREL(%rip), %r14
	jmp	LBB0_20
LBB0_11:
	movq	(%rbx), %rsi
	decq	%rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_18
LBB0_17:
	movq	(%r15), %rsi
	notq	%rsi
	addq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_18:
	callq	_HRDBG
	movq	_SRS_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_19:
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %r14
LBB0_20:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%rbx), %rdi
	decq	%rdi
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_SIGKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %esi
	callq	_kill
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jns	LBB0_20
## %bb.15:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	decq	%rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.16:
	movq	_SRS_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_20
LBB0_21:
	cmpl	$2, -36(%rbp)
	jge	LBB0_2
	jmp	LBB0_19
LBB0_26:
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %r14
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_PID,8,3                     ## @NO_PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atempt to unload KLD %d"

	.comm	_SWOSIndex,8,3                  ## @SWOSIndex
	.comm	_SNMP_ERR_NOT_WRITEABLE,4,2     ## @SNMP_ERR_NOT_WRITEABLE
L_.str.1:                               ## @.str.1
	.asciz	"missing item with kid=%d"

	.comm	_SRS_INVALID,8,3                ## @SRS_INVALID
	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"kldunload for %d/%s failed: %m"

	.comm	_errno,8,3                      ## @errno
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_SNMP_ERR_RES_UNAVAIL,4,2       ## @SNMP_ERR_RES_UNAVAIL
	.comm	_hr_kd,8,3                      ## @hr_kd
	.comm	_KERN_PROC_PID,4,2              ## @KERN_PROC_PID
L_.str.3:                               ## @.str.3
	.asciz	"missing item with PID=%d"

	.comm	_SIGKILL,4,2                    ## @SIGKILL
L_.str.4:                               ## @.str.4
	.asciz	"kill (%d, SIGKILL) failed: %m"

	.comm	_ESRCH,8,3                      ## @ESRCH
	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
	.no_dead_strip	_invalidate_swrun_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function invalidate_swrun_entry
_invalidate_swrun_entry:                ; @invalidate_swrun_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _NO_PID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NO_PID@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.1:
	mvn	x9, x9
	add	x1, x8, x9
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HRDBG
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _SWOSIndex@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SWOSIndex@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x21, _SNMP_ERR_NOT_WRITEABLE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SNMP_ERR_NOT_WRITEABLE@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.2:
	mov	w9, #16
	str	w9, [sp, #16]
	ldr	x9, [x22]
	mvn	x9, x9
	add	x0, x8, x9
	add	x1, sp, #16
	bl	_kldstat
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.3:
	cbz	w20, LBB0_18
; %bb.4:
	ldr	w0, [sp, #28]
	bl	_kldunload
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.5:
Lloh9:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	w8, w2, [sp, #24]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	adrp	x9, _EBUSY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _SNMP_ERR_RES_UNAVAIL@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SNMP_ERR_RES_UNAVAIL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x21, x21, x10, eq
	b	LBB0_14
LBB0_6:
Lloh22:
	adrp	x21, _hr_kd@GOTPAGE
Lloh23:
	ldr	x21, [x21, _hr_kd@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x21]
Lloh24:
	adrp	x8, _KERN_PROC_PID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KERN_PROC_PID@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x8, [x19]
	sub	x2, x8, #1
	add	x3, sp, #16
	bl	_kvm_getprocs
	ldr	w8, [sp, #16]
	cmp	x0, #0
	ccmp	w8, #1, #0, ne
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x19]
	sub	x1, x8, #1
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_8:
	bl	_IS_KERNPROC
	cbz	x0, LBB0_15
; %bb.9:
Lloh29:
	adrp	x21, _SNMP_ERR_NOT_WRITEABLE@GOTPAGE
Lloh30:
	ldr	x21, [x21, _SNMP_ERR_NOT_WRITEABLE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	ldr	x8, [x19]
	ldr	x9, [x22]
	mvn	x9, x9
	add	x1, x8, x9
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_HRDBG
LBB0_12:
Lloh33:
	adrp	x8, _SRS_INVALID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SRS_INVALID@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_13:
Lloh36:
	adrp	x21, _SNMP_ERR_NOERROR@GOTPAGE
Lloh37:
	ldr	x21, [x21, _SNMP_ERR_NOERROR@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	x8, [x19]
	sub	x0, x8, #1
Lloh38:
	adrp	x8, _SIGKILL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SIGKILL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w1, wzr, w8, eq
	bl	_kill
	tbz	x0, #63, LBB0_13
; %bb.16:
Lloh41:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	x8, [x19]
	sub	x2, x8, #1
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_syslog
Lloh46:
	adrp	x8, _errno@GOTPAGE
Lloh47:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
Lloh49:
	adrp	x9, _ESRCH@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.17:
Lloh52:
	adrp	x21, _SNMP_ERR_GENERR@GOTPAGE
Lloh53:
	ldr	x21, [x21, _SNMP_ERR_GENERR@GOTPAGEOFF]
	b	LBB0_14
LBB0_18:
	ldr	w8, [sp, #20]
Lloh54:
	adrp	x9, _SNMP_ERR_NOERROR@GOTPAGE
Lloh55:
	ldr	x9, [x9, _SNMP_ERR_NOERROR@GOTPAGEOFF]
	cmp	w8, #1
	csel	x21, x21, x9, gt
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_PID,8,3                     ; @NO_PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atempt to unload KLD %d"

	.comm	_SWOSIndex,8,3                  ; @SWOSIndex
	.comm	_SNMP_ERR_NOT_WRITEABLE,4,2     ; @SNMP_ERR_NOT_WRITEABLE
l_.str.1:                               ; @.str.1
	.asciz	"missing item with kid=%d"

	.comm	_SRS_INVALID,8,3                ; @SRS_INVALID
	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"kldunload for %d/%s failed: %m"

	.comm	_errno,8,3                      ; @errno
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_SNMP_ERR_RES_UNAVAIL,4,2       ; @SNMP_ERR_RES_UNAVAIL
	.comm	_hr_kd,8,3                      ; @hr_kd
	.comm	_KERN_PROC_PID,4,2              ; @KERN_PROC_PID
l_.str.3:                               ; @.str.3
	.asciz	"missing item with PID=%d"

	.comm	_SIGKILL,4,2                    ; @SIGKILL
l_.str.4:                               ; @.str.4
	.asciz	"kill (%d, SIGKILL) failed: %m"

	.comm	_ESRCH,8,3                      ; @ESRCH
	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
	.no_dead_strip	_invalidate_swrun_entry
.subsections_via_symbols
