	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw5864_indir_readb             ## -- Begin function tw5864_indir_readb
	.p2align	4, 0x90
_tw5864_indir_readb:                    ## @tw5864_indir_readb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$-30000, %ebx                   ## imm = 0x8AD0
	movq	_TW5864_IND_CTL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_tw_readl
	movl	%eax, %r13d
	movl	$31, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_4:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movl	(%r12), %edi
	shll	$2, %r15d
	movq	_TW5864_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_tw_writel
	movl	$-30000, %ebx                   ## imm = 0x8AD0
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_tw_readl
	movl	%eax, %r15d
	movl	$31, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_8:
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_9:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_10:
	movq	_TW5864_IND_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw_readl                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TW5864_IND_CTL,4,2             ## @TW5864_IND_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tw_indir_readl() retries exhausted before reading\n"

	.comm	_TW5864_ENABLE,4,2              ## @TW5864_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"tw_indir_readl() retries exhausted at reading\n"

	.comm	_TW5864_IND_DATA,4,2            ## @TW5864_IND_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw5864_indir_readb             ; -- Begin function tw5864_indir_readb
	.p2align	2
_tw5864_indir_readb:                    ; @tw5864_indir_readb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w23, #-30000
Lloh0:
	adrp	x22, _TW5864_IND_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TW5864_IND_CTL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_tw_readl
	mov	x21, x0
	mov	w0, #31
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	w23, w23, #1
	b.lo	LBB0_1
	b	LBB0_4
LBB0_3:
	cbnz	w23, LBB0_5
LBB0_4:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _TW5864_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TW5864_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w1, w8, w20, lsl #2
	bl	_tw_writel
	mov	w21, #-30000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_tw_readl
	mov	x20, x0
	mov	w0, #31
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adds	w21, w21, #1
	b.lo	LBB0_6
	b	LBB0_9
LBB0_8:
	cbnz	w21, LBB0_10
LBB0_9:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_10:
Lloh9:
	adrp	x8, _TW5864_IND_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TW5864_IND_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tw_readl
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TW5864_IND_CTL,4,2             ; @TW5864_IND_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tw_indir_readl() retries exhausted before reading\n"

	.comm	_TW5864_ENABLE,4,2              ; @TW5864_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"tw_indir_readl() retries exhausted at reading\n"

	.comm	_TW5864_IND_DATA,4,2            ; @TW5864_IND_DATA
.subsections_via_symbols
