	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_warm_init                      ## -- Begin function warm_init
	.p2align	4, 0x90
_warm_init:                             ## @warm_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-216(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_uname
	movq	-216(%rbp), %rdi
	callq	_strlen
	movq	-216(%rbp), %rdx
	cmpl	$3, %eax
	jl	LBB0_2
## %bb.1:
	cmpb	$46, 1(%rdx)
	jne	LBB0_2
## %bb.3:
	movsbl	(%rdx), %eax
	shll	$4, %eax
	addl	$-768, %eax                     ## imm = 0xFD00
	movsbl	2(%rdx), %ecx
	addl	$-48, %ecx
	orl	%eax, %ecx
	movq	_kernel_version@GOTPCREL(%rip), %r12
	movl	%ecx, (%r12)
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	movq	_warm_fd@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jns	LBB0_10
## %bb.4:
	movq	-216(%rbp), %rcx
	cmpl	$38, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmovgeq	%rax, %r8
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.5(%rip), %rdx
	leaq	-208(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r15, %rdi
	callq	_system
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$38, (%r12)
	jl	LBB0_8
## %bb.6:
	leaq	L_.str.7(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_manual_insmod_26
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	movq	%rax, (%r13)
	testq	%rax, %rax
	jns	LBB0_10
	jmp	LBB0_9
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected version string: %s\n"

	.comm	_kernel_version,4,2             ## @kernel_version
L_.str.1:                               ## @.str.1
	.asciz	"/proc/warm"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_warm_fd,8,3                    ## @warm_fd
L_.str.2:                               ## @.str.2
	.asciz	"warm_%s.%s"

L_.str.3:                               ## @.str.3
	.asciz	"ko"

L_.str.4:                               ## @.str.4
	.asciz	"o"

L_.str.5:                               ## @.str.5
	.asciz	"/sbin/insmod %s verbose=1"

L_.str.6:                               ## @.str.6
	.asciz	"system/insmod failed: %d %d\n"

	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"verbose=1"

L_.str.8:                               ## @.str.8
	.asciz	"manual insmod also failed: %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"wARM: can't init, acting as sys_cacheflush wrapper\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_warm_init                      ; -- Begin function warm_init
	.p2align	2
_warm_init:                             ; @warm_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x0, sp, #16
	bl	_uname
	ldr	x0, [sp, #16]
	bl	_strlen
	ldr	x8, [sp, #16]
	cmp	w0, #3
	b.lt	LBB0_9
; %bb.1:
	ldrb	w9, [x8, #1]
	cmp	w9, #46
	b.ne	LBB0_9
; %bb.2:
	ldrsb	w9, [x8]
	lsl	w9, w9, #4
	sub	w9, w9, #768
	ldrsb	w8, [x8, #2]
	sub	w8, w8, #48
	orr	w8, w9, w8
Lloh3:
	adrp	x21, _kernel_version@GOTPAGE
Lloh4:
	ldr	x21, [x21, _kernel_version@GOTPAGEOFF]
	str	w8, [x21]
Lloh5:
	adrp	x19, _O_RDWR@GOTPAGE
Lloh6:
	ldr	x19, [x19, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
Lloh9:
	adrp	x20, _warm_fd@GOTPAGE
Lloh10:
	ldr	x20, [x20, _warm_fd@GOTPAGEOFF]
	str	x0, [x20]
	tbz	x0, #63, LBB0_8
; %bb.3:
	ldr	x8, [sp, #16]
	ldr	w9, [x21]
Lloh11:
	adrp	x10, l_.str.4@PAGE
Lloh12:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh13:
	adrp	x11, l_.str.3@PAGE
Lloh14:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w9, #37
	csel	x9, x11, x10, gt
	stp	x8, x9, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	sub	x22, x29, #72
	sub	x0, x29, #72
	mov	w1, #32
	bl	_snprintf
	str	x22, [sp]
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #24
	mov	w1, #128
	bl	_snprintf
	add	x0, sp, #24
	bl	_system
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.4:
Lloh19:
	adrp	x22, _stderr@GOTPAGE
Lloh20:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh21:
	adrp	x9, _errno@GOTPAGE
Lloh22:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	x0, x9, [sp]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	ldr	w8, [x21]
	cmp	w8, #38
	b.lt	LBB0_7
; %bb.5:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	sub	x0, x29, #72
	bl	_manual_insmod_26
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	str	x0, [sp]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_7:
	ldr	w1, [x19]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	str	x0, [x20]
	tbnz	x0, #63, LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh32:
	adrp	x9, _stderr@GOTPAGE
Lloh33:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_10:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected version string: %s\n"

	.comm	_kernel_version,4,2             ; @kernel_version
l_.str.1:                               ; @.str.1
	.asciz	"/proc/warm"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_warm_fd,8,3                    ; @warm_fd
l_.str.2:                               ; @.str.2
	.asciz	"warm_%s.%s"

l_.str.3:                               ; @.str.3
	.asciz	"ko"

l_.str.4:                               ; @.str.4
	.asciz	"o"

l_.str.5:                               ; @.str.5
	.asciz	"/sbin/insmod %s verbose=1"

l_.str.6:                               ; @.str.6
	.asciz	"system/insmod failed: %d %d\n"

	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"verbose=1"

l_.str.8:                               ; @.str.8
	.asciz	"manual insmod also failed: %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"wARM: can't init, acting as sys_cacheflush wrapper\n"

.subsections_via_symbols
