	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp8psk_usb_in_op               ## -- Begin function gp8psk_usb_in_op
	.p2align	4, 0x90
_gp8psk_usb_in_op:                      ## @gp8psk_usb_in_op
	.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	%r9d, %r14d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_mutex_lock_interruptible
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %r13d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r12d
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	movl	4(%rbx), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movq	%r13, %rbx
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	$2000                           ## imm = 0x7D0
	pushq	%r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_deb_info
	incl	%r12d
	testl	%r13d, %r13d
	jns	LBB0_2
	jmp	LBB0_6
LBB0_5:
	xorl	%r12d, %r12d
	cmpl	%r14d, %r13d
	je	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_deb_xfer
	movq	_deb_xfer@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_debug_dump
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading number %d (ret: %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"usb in %d operation failed."

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"in: req. %x, val: %x, ind: %x, buffer: "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp8psk_usb_in_op               ; -- Begin function gp8psk_usb_in_op
	.p2align	2
_gp8psk_usb_in_op:                      ; @gp8psk_usb_in_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.1:
	cbz	w20, LBB0_7
; %bb.2:
	ldr	w25, [x19, #4]
	mov	x0, x25
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x26, _USB_TYPE_VENDOR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x27, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _USB_DIR_IN@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	w8, #2000
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	mov	x7, x20
	bl	_usb_control_msg
	mov	x25, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	x2, x25
	bl	_deb_info
	tbnz	w25, #31, LBB0_10
; %bb.3:
	cmp	w25, w20
	b.eq	LBB0_8
; %bb.4:
	ldr	w25, [x19, #4]
	mov	x0, x25
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	w8, #2000
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	mov	x7, x20
	bl	_usb_control_msg
	mov	x25, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #1
	mov	x2, x25
	bl	_deb_info
	tbnz	w25, #31, LBB0_10
; %bb.5:
	cmp	w25, w20
	b.eq	LBB0_8
; %bb.6:
	ldr	w25, [x19, #4]
	mov	x0, x25
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	w8, #2000
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	mov	x7, x20
	bl	_usb_control_msg
	mov	x25, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2
	mov	x2, x25
	bl	_deb_info
	tbz	w25, #31, LBB0_8
	b	LBB0_10
LBB0_7:
	mov	w25, #0
LBB0_8:
	cmp	w25, w20
	b.ne	LBB0_10
; %bb.9:
	mov	w25, #0
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_warn
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_11:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_deb_xfer
Lloh17:
	adrp	x2, _deb_xfer@GOTPAGE
Lloh18:
	ldr	x2, [x2, _deb_xfer@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_debug_dump
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading number %d (ret: %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"usb in %d operation failed."

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"in: req. %x, val: %x, ind: %x, buffer: "

.subsections_via_symbols
