	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function db9_saturn_write_sub
_db9_saturn_write_sub:                  ## @db9_saturn_write_sub
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$2, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$1, %esi
	jne	LBB0_7
## %bb.3:
	testl	%ecx, %ecx
	setne	%al
	shlb	$3, %al
	orb	%dl, %al
	testl	%r8d, %r8d
	setne	%cl
	shlb	$2, %cl
	orb	%al, %cl
	orb	$-80, %cl
	jmp	LBB0_4
LBB0_6:
	rolb	$4, %dl
	movl	%edx, %eax
	andb	$51, %al
	shlb	$2, %al
	shrb	$2, %dl
	andb	$51, %dl
	orb	%al, %dl
	movl	%edx, %eax
	shrb	%al
	andb	$64, %dl
	addb	%dl, %dl
	orb	%al, %dl
	shrb	$5, %dl
	andb	$6, %dl
	xorb	$2, %dl
	testl	%ecx, %ecx
	sete	%al
	orb	%dl, %al
	movzbl	%al, %esi
	popq	%rbp
	jmp	_parport_write_control          ## TAILCALL
LBB0_5:
	shlb	$4, %dl
	testl	%ecx, %ecx
	setne	%al
	shlb	$3, %al
	orb	%dl, %al
	testl	%r8d, %r8d
	setne	%cl
	shlb	$2, %cl
	orb	%al, %cl
	orb	$67, %cl
LBB0_4:
	movzbl	%cl, %esi
	popq	%rbp
	jmp	_parport_write_data             ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_db9_saturn_write_sub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function db9_saturn_write_sub
_db9_saturn_write_sub:                  ; @db9_saturn_write_sub
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	cmp	w1, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #1
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #-72
	mov	w9, #-80
	cmp	w3, #0
	csel	w8, w9, w8, eq
	cmp	w4, #0
	cset	w9, ne
	orr	w8, w8, w2
	orr	w8, w8, w9, lsl #2
	and	w1, w8, #0xff
	b	_parport_write_data
LBB0_4:
	rbit	w8, w2
	lsr	w8, w8, #29
	and	w8, w8, #0x6
	eor	w8, w8, #0x2
	cmp	w3, #0
	cset	w9, eq
	orr	w1, w8, w9
	b	_parport_write_control
LBB0_5:
	lsl	w8, w2, #4
	cmp	w3, #0
	cset	w9, ne
	bfi	w8, w9, #3, #1
	cmp	w4, #0
	cset	w9, ne
	bfi	w8, w9, #2, #1
	mov	w9, #67
	orr	w8, w8, w9
	and	w1, w8, #0xff
	b	_parport_write_data
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_db9_saturn_write_sub
.subsections_via_symbols
