	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function status_amiga_to_pc
_status_amiga_to_pc:                    ## @status_amiga_to_pc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PARPORT_STATUS_BUSY@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_PARPORT_STATUS_ACK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	%al, %cl
	movq	_PARPORT_STATUS_ERROR@GOTPCREL(%rip), %rdx
	orb	(%rdx), %cl
	movl	%edi, %edx
	andl	$1, %edx
	notb	%al
	xorl	%esi, %esi
	cmpl	$1, %edx
	sbbl	%esi, %esi
	orb	%al, %sil
	andb	%cl, %sil
	movl	%edi, %eax
	andl	$2, %eax
	movq	_PARPORT_STATUS_PAPEROUT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%eax, %ecx
	andl	$4, %edi
	movq	_PARPORT_STATUS_SELECT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%edi, %eax
	orb	%cl, %al
	orb	%sil, %al
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARPORT_STATUS_BUSY,1,0        ## @PARPORT_STATUS_BUSY
	.comm	_PARPORT_STATUS_ACK,1,0         ## @PARPORT_STATUS_ACK
	.comm	_PARPORT_STATUS_ERROR,1,0       ## @PARPORT_STATUS_ERROR
	.comm	_PARPORT_STATUS_PAPEROUT,1,0    ## @PARPORT_STATUS_PAPEROUT
	.comm	_PARPORT_STATUS_SELECT,1,0      ## @PARPORT_STATUS_SELECT
	.no_dead_strip	_status_amiga_to_pc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function status_amiga_to_pc
_status_amiga_to_pc:                    ; @status_amiga_to_pc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PARPORT_STATUS_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARPORT_STATUS_BUSY@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _PARPORT_STATUS_ACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PARPORT_STATUS_ACK@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w9, w9, w8
Lloh4:
	adrp	x10, _PARPORT_STATUS_ERROR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PARPORT_STATUS_ERROR@GOTPAGEOFF]
	ldrb	w10, [x10]
	orr	w9, w9, w10
	tst	w0, #0x1
	mov	w10, #-1
	csinv	w8, w10, w8, eq
	and	w8, w9, w8
Lloh6:
	adrp	x9, _PARPORT_STATUS_PAPEROUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PARPORT_STATUS_PAPEROUT@GOTPAGEOFF]
	lsl	w10, w0, #30
	ldrb	w9, [x9]
	and	w9, w9, w10, asr #31
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _PARPORT_STATUS_SELECT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PARPORT_STATUS_SELECT@GOTPAGEOFF]
	lsl	w10, w0, #29
	ldrb	w9, [x9]
	and	w9, w9, w10, asr #31
	orr	w8, w8, w9
	and	w0, w8, #0xff
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PARPORT_STATUS_BUSY,1,0        ; @PARPORT_STATUS_BUSY
	.comm	_PARPORT_STATUS_ACK,1,0         ; @PARPORT_STATUS_ACK
	.comm	_PARPORT_STATUS_ERROR,1,0       ; @PARPORT_STATUS_ERROR
	.comm	_PARPORT_STATUS_PAPEROUT,1,0    ; @PARPORT_STATUS_PAPEROUT
	.comm	_PARPORT_STATUS_SELECT,1,0      ; @PARPORT_STATUS_SELECT
	.no_dead_strip	_status_amiga_to_pc
.subsections_via_symbols
