	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zc0301_read_reg                ## -- Begin function zc0301_read_reg
	.p2align	4, 0x90
_zc0301_read_reg:                       ## @zc0301_read_reg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_ZC0301_CTRL_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$161, %edx
	movl	$192, %ecx
	movl	$1, %r8d
	movl	%r14d, %r9d
	pushq	%r10
	pushq	$1
	pushq	%r15
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_PDBGG
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_DBG
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_PDBGG
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZC0301_CTRL_TIMEOUT,4,2        ## @ZC0301_CTRL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read a register (index 0x%04X, error %d)"

L_.str.1:                               ## @.str.1
	.asciz	"Read: index 0x%04X, value: 0x%04X"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zc0301_read_reg                ; -- Begin function zc0301_read_reg
	.p2align	2
_zc0301_read_reg:                       ; @zc0301_read_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldp	x20, x21, [x0]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _ZC0301_CTRL_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZC0301_CTRL_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	w2, #161
	mov	w3, #192
	mov	w4, #1
	mov	x5, x19
	mov	x6, x20
	mov	w7, #1
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w2, [x20]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_PDBGG
	ldr	w0, [x20]
	b	LBB0_3
LBB0_2:
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x19
	bl	_DBG
	ldr	w2, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_PDBGG
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ZC0301_CTRL_TIMEOUT,4,2        ; @ZC0301_CTRL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read a register (index 0x%04X, error %d)"

l_.str.1:                               ; @.str.1
	.asciz	"Read: index 0x%04X, value: 0x%04X"

.subsections_via_symbols
