	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm_write
_sm_write:                              ## @sm_write
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movl	16(%r15), %edi
	callq	_BUG_ON
	shlq	$9, %rbx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sm_break_offset
	leaq	12(%r15), %r12
	movq	%r12, %rdi
	callq	_del_timer
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_sm_get_zone
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_7
LBB0_2:
	movl	(%r15), %eax
	cmpl	-48(%rbp), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_4
## %bb.3:
	movl	4(%r15), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_sm_cache_flush
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r15)
LBB0_6:
	movl	-52(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sm_cache_put
	xorl	%r13d, %r13d
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_cache_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_cache_timeout,4,2              ## @cache_timeout
	.no_dead_strip	_sm_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm_write
_sm_write:                              ; @sm_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	ldr	x22, [x0]
	ldr	w0, [x22, #16]
	bl	_BUG_ON
	lsl	x1, x19, #9
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x22
	bl	_sm_break_offset
	add	x19, x22, #12
	mov	x0, x19
	bl	_del_timer
	add	x20, x22, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w1, [sp, #12]
	mov	x0, x22
	bl	_sm_get_zone
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_7
LBB0_2:
	ldr	w8, [x22]
	ldr	w9, [sp, #8]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x22, #4]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_4:
	mov	x0, x22
	bl	_sm_cache_flush
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w8, [sp, #8]
	str	w8, [x22]
	ldr	w8, [sp, #12]
	str	w8, [x22, #4]
LBB0_6:
	ldr	w2, [sp, #4]
	mov	x0, x22
	mov	x1, x21
	bl	_sm_cache_put
	mov	w23, #0
LBB0_7:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _cache_timeout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cache_timeout@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_mod_timer
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_cache_timeout,4,2              ; @cache_timeout
	.no_dead_strip	_sm_write
.subsections_via_symbols
