	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_twsi_blk_rd                ## -- Begin function qib_twsi_blk_rd
	.p2align	4, 0x90
_qib_twsi_blk_rd:                       ## @qib_twsi_blk_rd
	.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	%r8d, %ebx
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rdi, %r14
	movq	_QIB_TWSI_NO_DEV@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.1:
	addl	%r13d, %r13d
	movl	%r13d, %r12d
LBB0_2:
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_QIB_TWSI_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_qib_twsi_wr
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.4:
	incl	%ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpl	$2, %ebx
	sete	%sil
	movq	%r14, %rdi
	callq	_rd_byte
	movl	%eax, (%r15)
	addq	$4, %r15
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
	jmp	LBB0_11
LBB0_6:
	movl	%esi, %r12d
	movq	_WRITE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r12d, %esi
	movq	_QIB_TWSI_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_qib_twsi_wr
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_stop_cmd
LBB0_10:
	movl	$1, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_qib_twsi_wr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TWSI_BUF_WAIT_USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_qib_dev_err
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_TWSI_NO_DEV,4,2            ## @QIB_TWSI_NO_DEV
	.comm	_READ_CMD,4,2                   ## @READ_CMD
	.comm	_QIB_TWSI_START,4,2             ## @QIB_TWSI_START
	.comm	_WRITE_CMD,4,2                  ## @WRITE_CMD
	.comm	_TWSI_BUF_WAIT_USEC,4,2         ## @TWSI_BUF_WAIT_USEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write interface read addr %02X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_twsi_blk_rd                ; -- Begin function qib_twsi_blk_rd
	.p2align	2
_qib_twsi_blk_rd:                       ; @qib_twsi_blk_rd
	.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	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _QIB_TWSI_NO_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QIB_TWSI_NO_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _QIB_TWSI_START@GOTPAGE
Lloh4:
	ldr	x25, [x25, _QIB_TWSI_START@GOTPAGEOFF]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.1:
	lsl	w22, w23, #1
LBB0_2:
Lloh5:
	adrp	x8, _READ_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _READ_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w22
	ldr	w2, [x25]
	mov	x0, x19
	bl	_qib_twsi_wr
	cbnz	w0, LBB0_8
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.4:
	add	w21, w21, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #2
	cset	w1, eq
	mov	x0, x19
	bl	_rd_byte
	str	w0, [x20], #4
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_5
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	mov	x22, x1
Lloh8:
	adrp	x8, _WRITE_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WRITE_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w1, w8, w1
	ldr	w2, [x25]
	mov	x0, x19
	bl	_qib_twsi_wr
	cbz	w0, LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_stop_cmd
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
LBB0_11:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_qib_twsi_wr
	mov	x24, x0
Lloh11:
	adrp	x8, _TWSI_BUF_WAIT_USEC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TWSI_BUF_WAIT_USEC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_udelay
	cbz	w24, LBB0_2
; %bb.12:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_qib_dev_err
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_TWSI_NO_DEV,4,2            ; @QIB_TWSI_NO_DEV
	.comm	_READ_CMD,4,2                   ; @READ_CMD
	.comm	_QIB_TWSI_START,4,2             ; @QIB_TWSI_START
	.comm	_WRITE_CMD,4,2                  ; @WRITE_CMD
	.comm	_TWSI_BUF_WAIT_USEC,4,2         ; @TWSI_BUF_WAIT_USEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write interface read addr %02X\n"

.subsections_via_symbols
