	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abituguru3_read
_abituguru3_read:                       ## @abituguru3_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	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_abituguru3_synchronize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_ABIT_UGURU3_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	$26, %edi
	callq	_outb
	movq	%r12, %rdi
	callq	_abituguru3_wait_while_busy
	movq	_ABIT_UGURU3_SUCCESS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_2
## %bb.5:
	movq	_ABIT_UGURU3_CMD@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	%r12, %rdi
	callq	_abituguru3_wait_while_busy
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.7:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_outb
	movq	%r12, %rdi
	callq	_abituguru3_wait_while_busy
	cmpl	(%r14), %eax
	jne	LBB0_8
## %bb.10:
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movl	%r13d, %edi
	callq	_outb
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_abituguru3_wait_while_busy
	cmpl	(%r14), %eax
	jne	LBB0_13
## %bb.11:
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.14:
	movl	%r13d, %r14d
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_abituguru3_wait_for_read
	movq	_ABIT_UGURU3_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_ABIT_UGURU3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_inb
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_15
## %bb.18:
	movl	%r14d, %ebx
	jmp	LBB0_19
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	movl	%ebx, %edx
	xorl	%ebx, %ebx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_4:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ABIT_UGURU3_DEBUG
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_ABIT_UGURU3_DEBUG
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ABIT_UGURU3_DATA,8,3           ## @ABIT_UGURU3_DATA
	.comm	_ABIT_UGURU3_SUCCESS,4,2        ## @ABIT_UGURU3_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read from 0x%02x:0x%02x timed out after sending 0x1A, status: 0x%02x\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ABIT_UGURU3_CMD,8,3            ## @ABIT_UGURU3_CMD
L_.str.1:                               ## @.str.1
	.asciz	"read from 0x%02x:0x%02x timed out after sending the bank, status: 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"read from 0x%02x:0x%02x timed out after sending the offset, status: 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"read from 0x%02x:0x%02x timed out after sending the count, status: 0x%02x\n"

L_.str.4:                               ## @.str.4
	.asciz	"timeout reading byte %d from 0x%02x:0x%02x, status: 0x%02x\n"

	.no_dead_strip	_abituguru3_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abituguru3_read
_abituguru3_read:                       ; @abituguru3_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_abituguru3_synchronize
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _ABIT_UGURU3_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ABIT_UGURU3_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #26
	bl	_outb
	mov	x0, x22
	bl	_abituguru3_wait_while_busy
Lloh3:
	adrp	x25, _ABIT_UGURU3_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ABIT_UGURU3_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x22]
Lloh5:
	adrp	x26, _ABIT_UGURU3_CMD@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ABIT_UGURU3_CMD@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outb
	mov	x0, x22
	bl	_abituguru3_wait_while_busy
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x19
	bl	_outb
	mov	x0, x22
	bl	_abituguru3_wait_while_busy
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x23
	bl	_outb
	mov	x0, x22
	bl	_abituguru3_wait_while_busy
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.5:
	cmp	w23, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x24, #0
	mov	w23, w23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_abituguru3_wait_for_read
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_inb
	str	w0, [x21, x24, lsl #2]
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_7
; %bb.9:
	mov	x24, x23
	b	LBB0_15
LBB0_10:
	mov	x3, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
	mov	x3, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x3, x0
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	mov	x1, x20
	mov	x2, x19
	bl	_ABIT_UGURU3_DEBUG
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	mov	w24, #0
	b	LBB0_15
LBB0_17:
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	mov	x2, x20
	mov	x3, x19
	bl	_ABIT_UGURU3_DEBUG
	b	LBB0_15
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ABIT_UGURU3_DATA,8,3           ; @ABIT_UGURU3_DATA
	.comm	_ABIT_UGURU3_SUCCESS,4,2        ; @ABIT_UGURU3_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read from 0x%02x:0x%02x timed out after sending 0x1A, status: 0x%02x\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ABIT_UGURU3_CMD,8,3            ; @ABIT_UGURU3_CMD
l_.str.1:                               ; @.str.1
	.asciz	"read from 0x%02x:0x%02x timed out after sending the bank, status: 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"read from 0x%02x:0x%02x timed out after sending the offset, status: 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"read from 0x%02x:0x%02x timed out after sending the count, status: 0x%02x\n"

l_.str.4:                               ; @.str.4
	.asciz	"timeout reading byte %d from 0x%02x:0x%02x, status: 0x%02x\n"

	.no_dead_strip	_abituguru3_read
.subsections_via_symbols
