	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_cmt_start_stop_ch
_sh_cmt_start_stop_ch:                  ## @sh_cmt_start_stop_ch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_sh_cmt_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_CMSTR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sh_cmt_read
	movb	(%r12), %cl
	movl	$1, %edx
	shll	%cl, %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movslq	%edx, %rcx
	orq	%rcx, %rax
	jmp	LBB0_3
LBB0_2:
	notl	%edx
	movslq	%edx, %rcx
	andq	%rcx, %rax
LBB0_3:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_sh_cmt_write
	movq	_sh_cmt_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sh_cmt_lock,4,2                ## @sh_cmt_lock
	.comm	_CMSTR,4,2                      ## @CMSTR
	.no_dead_strip	_sh_cmt_start_stop_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_cmt_start_stop_ch
_sh_cmt_start_stop_ch:                  ; @sh_cmt_start_stop_ch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x0, _sh_cmt_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sh_cmt_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x22, _CMSTR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CMSTR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sh_cmt_read
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w8, w9, w8
	mvn	w9, w8
	sxtw	x9, w9
	and	x9, x0, x9
	sxtw	x8, w8
	orr	x8, x0, x8
	cmp	w19, #0
	csel	x2, x9, x8, eq
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sh_cmt_write
Lloh4:
	adrp	x0, _sh_cmt_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _sh_cmt_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sh_cmt_lock,4,2                ; @sh_cmt_lock
	.comm	_CMSTR,4,2                      ; @CMSTR
	.no_dead_strip	_sh_cmt_start_stop_ch
.subsections_via_symbols
