	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm_enable_hw
_stm_enable_hw:                         ## @stm_enable_hw
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_stm_hwevent_enable_hw
LBB0_2:
	movq	%rbx, %rdi
	callq	_stm_port_enable_hw
	movq	8(%rbx), %rdi
	callq	_CS_UNLOCK
	movq	_STMSYNCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$4095, %edi                     ## imm = 0xFFF
	callq	_writel_relaxed
	movl	(%rbx), %edi
	shll	$16, %edi
	orl	$3, %edi
	movq	_STMTCSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel_relaxed
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CS_LOCK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STMSYNCR,8,3                   ## @STMSYNCR
	.comm	_STMTCSR,8,3                    ## @STMTCSR
	.no_dead_strip	_stm_enable_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm_enable_hw
_stm_enable_hw:                         ; @stm_enable_hw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_stm_hwevent_enable_hw
LBB0_2:
	mov	x0, x19
	bl	_stm_port_enable_hw
	ldr	x0, [x19, #8]
	bl	_CS_UNLOCK
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _STMSYNCR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STMSYNCR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #4095
	bl	_writel_relaxed
	ldr	w8, [x19]
	mov	w0, #3
	bfi	w0, w8, #16, #16
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _STMTCSR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STMTCSR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CS_LOCK
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STMSYNCR,8,3                   ; @STMSYNCR
	.comm	_STMTCSR,8,3                    ; @STMTCSR
	.no_dead_strip	_stm_enable_hw
.subsections_via_symbols
