	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc2007_open
_tsc2007_open:                          ## @tsc2007_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movl	$0, (%rax)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mb
	movl	4(%rbx), %edi
	callq	_enable_irq
	movq	_PWRDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsc2007_xfer
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_tsc2007_stop
	movl	%r15d, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWRDOWN,4,2                    ## @PWRDOWN
	.no_dead_strip	_tsc2007_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc2007_open
_tsc2007_open:                          ; @tsc2007_open
	.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
	bl	_input_get_drvdata
	mov	x19, x0
	str	wzr, [x0]
	bl	_mb
	ldr	w0, [x19, #4]
	bl	_enable_irq
Lloh0:
	adrp	x8, _PWRDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PWRDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tsc2007_xfer
	mov	x20, x0
	mov	w0, #0
	tbz	w20, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tsc2007_stop
	mov	x0, x20
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PWRDOWN,4,2                    ; @PWRDOWN
	.no_dead_strip	_tsc2007_open
.subsections_via_symbols
