	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bluecard_read
_bluecard_read:                         ## @bluecard_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_REG_COMMAND_RX_WIN_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %eax
	movq	_REG_COMMAND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%rax, %rsi
	callq	_outb
	addl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_inb
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	$1, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%rbx), %edi
	callq	_inb
	movq	%rax, (%r14,%r13,8)
	incq	%r13
	incl	%r12d
	cmpq	%r13, %r15
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$16, %r12d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_REG_COMMAND_RX_WIN_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	callq	_outb
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_COMMAND_RX_WIN_ONE,4,2     ## @REG_COMMAND_RX_WIN_ONE
	.comm	_REG_COMMAND,8,3                ## @REG_COMMAND
	.comm	_REG_COMMAND_RX_WIN_TWO,4,2     ## @REG_COMMAND_RX_WIN_TWO
	.no_dead_strip	_bluecard_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bluecard_read
_bluecard_read:                         ; @bluecard_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _REG_COMMAND_RX_WIN_ONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_COMMAND_RX_WIN_ONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w22, w21
Lloh3:
	adrp	x23, _REG_COMMAND@GOTPAGE
Lloh4:
	ldr	x23, [x23, _REG_COMMAND@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb
	add	w20, w20, w21
	mov	x0, x20
	bl	_inb
	mov	x21, x0
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.1:
	and	x24, x21, #0xffffffff
	mov	w26, #1
Lloh5:
	adrp	x25, _REG_COMMAND_RX_WIN_TWO@GOTPAGE
Lloh6:
	ldr	x25, [x25, _REG_COMMAND_RX_WIN_TWO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w26, w20
	bl	_inb
	str	x0, [x19], #8
	add	w26, w26, #1
	subs	x24, x24, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w26, #16
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb
	mov	w26, #0
	b	LBB0_2
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_COMMAND_RX_WIN_ONE,4,2     ; @REG_COMMAND_RX_WIN_ONE
	.comm	_REG_COMMAND,8,3                ; @REG_COMMAND
	.comm	_REG_COMMAND_RX_WIN_TWO,4,2     ; @REG_COMMAND_RX_WIN_TWO
	.no_dead_strip	_bluecard_read
.subsections_via_symbols
