	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abituguru_send_address
_abituguru_send_address:                ## @abituguru_send_address
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_abituguru_ready
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ABIT_UGURU_STATUS_INPUT@GOTPCREL(%rip), %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ABIT_UGURU_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_outb
	movq	$0, 8(%rbx)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_abituguru_wait
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r12d
	subl	$1, %r12d
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$3, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_ABIT_UGURU_DEBUG
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_ABIT_UGURU_RETRY_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_schedule_timeout
	movq	%rbx, %rdi
	callq	_abituguru_ready
	movl	%r12d, %r14d
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_5
LBB0_10:
	movq	_ABIT_UGURU_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_outb
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_ABIT_UGURU_DEBUG
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ABIT_UGURU_DATA,8,3            ## @ABIT_UGURU_DATA
	.comm	_ABIT_UGURU_STATUS_INPUT,4,2    ## @ABIT_UGURU_STATUS_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout exceeded waiting for more input state, %d tries remaining\n"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_ABIT_UGURU_RETRY_DELAY,4,2     ## @ABIT_UGURU_RETRY_DELAY
L_.str.1:                               ## @.str.1
	.asciz	"timeout exceeded waiting for more input state (bank: %d)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ABIT_UGURU_CMD,8,3             ## @ABIT_UGURU_CMD
	.no_dead_strip	_abituguru_send_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abituguru_send_address
_abituguru_send_address:                ; @abituguru_send_address
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_abituguru_ready
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x25, _ABIT_UGURU_DATA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ABIT_UGURU_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ABIT_UGURU_STATUS_INPUT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ABIT_UGURU_STATUS_INPUT@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	mov	x24, x21
Lloh10:
	adrp	x28, _ABIT_UGURU_RETRY_DELAY@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ABIT_UGURU_RETRY_DELAY@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x19
	bl	_outb
	str	xzr, [x22, #8]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_abituguru_wait
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #3
	mov	x1, x23
	mov	x2, x24
	bl	_ABIT_UGURU_DEBUG
	ldr	w0, [x27]
	bl	_set_current_state
	ldr	w0, [x28]
	bl	_schedule_timeout
	sub	w24, w24, #1
	mov	x0, x22
	bl	_abituguru_ready
	cbz	x0, LBB0_5
	b	LBB0_1
LBB0_8:
	ldr	x8, [x22]
Lloh12:
	adrp	x9, _ABIT_UGURU_CMD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ABIT_UGURU_CMD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outb
	mov	w0, #0
	b	LBB0_3
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_ABIT_UGURU_DEBUG
LBB0_11:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ABIT_UGURU_DATA,8,3            ; @ABIT_UGURU_DATA
	.comm	_ABIT_UGURU_STATUS_INPUT,4,2    ; @ABIT_UGURU_STATUS_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout exceeded waiting for more input state, %d tries remaining\n"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_ABIT_UGURU_RETRY_DELAY,4,2     ; @ABIT_UGURU_RETRY_DELAY
l_.str.1:                               ; @.str.1
	.asciz	"timeout exceeded waiting for more input state (bank: %d)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ABIT_UGURU_CMD,8,3             ; @ABIT_UGURU_CMD
	.no_dead_strip	_abituguru_send_address
.subsections_via_symbols
