	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_warm_finish                    ## -- Begin function warm_finish
	.p2align	4, 0x90
_warm_finish:                           ## @warm_finish
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_warm_fd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_6
## %bb.1:
	callq	_close
	movl	$-1, (%rbx)
	movq	_kernel_version@GOTPCREL(%rip), %rax
	cmpl	$37, (%rax)
	jg	LBB0_3
## %bb.2:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_uname
	movq	-112(%rbp), %rcx
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	$32, %esi
	callq	_snprintf
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcpy
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %rbx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_system
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
	leaq	-48(%rbp), %rdi
	callq	_manual_rmmod
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_warm_fd,4,2                    ## @warm_fd
	.comm	_kernel_version,4,2             ## @kernel_version
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warm_%s"

L_.str.1:                               ## @.str.1
	.asciz	"warm"

L_.str.2:                               ## @.str.2
	.asciz	"/sbin/rmmod %s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"system/rmmod failed: %d %d\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_warm_finish                    ; -- Begin function warm_finish
	.p2align	2
_warm_finish:                           ; @warm_finish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x19, _warm_fd@GOTPAGE
Lloh4:
	ldr	x19, [x19, _warm_fd@GOTPAGEOFF]
	ldr	w0, [x19]
	tbnz	w0, #31, LBB0_6
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
Lloh5:
	adrp	x8, _kernel_version@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kernel_version@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #37
	b.gt	LBB0_3
; %bb.2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x0, sp, #8
	bl	_uname
	ldr	x3, [sp, #8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #56
	mov	w1, #32
	bl	_snprintf
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #56
	bl	_strcpy
LBB0_4:
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	sub	x3, x29, #56
	mov	w1, #64
	bl	_snprintf
	add	x0, sp, #8
	bl	_system
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	sub	x0, x29, #56
	bl	_manual_rmmod
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_warm_fd,4,2                    ; @warm_fd
	.comm	_kernel_version,4,2             ; @kernel_version
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warm_%s"

l_.str.1:                               ; @.str.1
	.asciz	"warm"

l_.str.2:                               ; @.str.2
	.asciz	"/sbin/rmmod %s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"system/rmmod failed: %d %d\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
