	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function db9_open
_db9_open:                              ## @db9_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	(%rax), %r12
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	24(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%rbx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_parport_claim
	movq	%r12, %rdi
	movl	$255, %esi
	callq	_parport_write_data
	movq	_db9_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_parport_data_reverse
	movq	_DB9_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_parport_write_control
LBB0_4:
	addq	$12, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_DB9_REFRESH_TIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_mod_timer
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db9_modes,8,3                  ## @db9_modes
	.comm	_DB9_NORMAL,4,2                 ## @DB9_NORMAL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DB9_REFRESH_TIME,8,3           ## @DB9_REFRESH_TIME
	.no_dead_strip	_db9_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function db9_open
_db9_open:                              ; @db9_open
	.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
	bl	_input_get_drvdata
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x21, #24]
	add	w9, w8, #1
	str	w9, [x21, #24]
	cbnz	w8, LBB0_5
; %bb.2:
	ldr	x0, [x21, #16]
	bl	_parport_claim
	mov	x0, x22
	mov	w1, #255
	bl	_parport_write_data
Lloh0:
	adrp	x8, _db9_modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _db9_modes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_parport_data_reverse
Lloh3:
	adrp	x8, _DB9_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DB9_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_parport_write_control
LBB0_4:
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x21, #12
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _DB9_REFRESH_TIME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DB9_REFRESH_TIME@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_db9_modes,8,3                  ; @db9_modes
	.comm	_DB9_NORMAL,4,2                 ; @DB9_NORMAL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DB9_REFRESH_TIME,8,3           ; @DB9_REFRESH_TIME
	.no_dead_strip	_db9_open
.subsections_via_symbols
