	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_read_regs
_check_read_regs:                       ## @check_read_regs
	.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	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	(%rdi), %r14d
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_struct_size
	cmpl	%eax, %r14d
	jge	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_zd_usb_dev
	movl	%eax, %r15d
	movl	(%r12), %r12d
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_struct_size
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	jmp	LBB0_8
LBB0_2:
	cmpl	$8, (%r12)
	jbe	LBB0_3
## %bb.7:
	movq	%r12, %rdi
	callq	_zd_usb_dev
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edi
	movl	$8, %ecx
LBB0_8:
	xorl	%eax, %eax
	callq	_dev_dbg_f
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %r14d
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.4:
	movq	%r15, %rax
	movq	(%rbx), %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movl	%r13d, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdx
	cmpq	(%rax,%rbx,8), %rdx
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_5
	jmp	LBB0_10
LBB0_6:
	movq	%r12, %rdi
	callq	_zd_usb_dev
	movl	%eax, %r12d
	movq	(%r15,%rbx,8), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_le16_to_cpu
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_f
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: actual length %d less than expected %zu\n"

L_.str.1:                               ## @.str.1
	.asciz	"error: actual length %d exceeds buffer size %zu\n"

L_.str.2:                               ## @.str.2
	.asciz	"rd[%d] addr %#06hx expected %#06hx\n"

	.no_dead_strip	_check_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_read_regs
_check_read_regs:                       ; @check_read_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	w21, [x0]
	mov	x0, x23
	mov	x1, x23
	bl	_struct_size
	cmp	w21, w0
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_zd_usb_dev
	mov	x20, x0
	ldr	w19, [x19]
	mov	x0, x23
	mov	x1, x23
	mov	x2, x22
	bl	_struct_size
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	b	LBB0_10
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #8
	b.ls	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_zd_usb_dev
	ldr	w2, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #8
	b	LBB0_10
LBB0_4:
	cbz	w22, LBB0_8
; %bb.5:
	mov	x21, #0
	ldr	x23, [x23]
	ldr	x8, [x20]
	mov	w9, w22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x21, #3
	ldr	x10, [x23, x24]
	ldr	x11, [x8, x24]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x9, x21
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_zd_usb_dev
	mov	x19, x0
	ldr	x0, [x23, x24]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x0, [x8, x24]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
LBB0_10:
	bl	_dev_dbg_f
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: actual length %d less than expected %zu\n"

l_.str.1:                               ; @.str.1
	.asciz	"error: actual length %d exceeds buffer size %zu\n"

l_.str.2:                               ; @.str.2
	.asciz	"rd[%d] addr %#06hx expected %#06hx\n"

	.no_dead_strip	_check_read_regs
.subsections_via_symbols
