	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tgfx_open
_tgfx_open:                             ## @tgfx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	16(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_parport_claim
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_parport_write_control
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_TGFX_REFRESH_TIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TGFX_REFRESH_TIME,8,3          ## @TGFX_REFRESH_TIME
	.no_dead_strip	_tgfx_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tgfx_open
_tgfx_open:                             ; @tgfx_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
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_parport_claim
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #4
	bl	_parport_write_control
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x19, #4
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TGFX_REFRESH_TIME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TGFX_REFRESH_TIME@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TGFX_REFRESH_TIME,8,3          ; @TGFX_REFRESH_TIME
	.no_dead_strip	_tgfx_open
.subsections_via_symbols
