	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_wait_rsp
_pcan_usb_wait_rsp:                     ## @pcan_usb_wait_rsp
	.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
	movq	_PCAN_USB_STATE_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%ecx, %ecx
	callq	_pcan_usb_send_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	20(%r13), %ebx
	movq	_PCAN_USB_EP_CMDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_usb_rcvbulkpipe
	movq	8(%r13), %rdx
	movq	_PCAN_USB_CMD_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PCAN_USB_COMMAND_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	leaq	-44(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_usb_bulk_msg
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	16(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_netdev_err
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_PCAN_USB_CMD_ARGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	movq	_PCAN_USB_CMD_ARGS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAN_USB_STATE_CONNECTED,4,2   ## @PCAN_USB_STATE_CONNECTED
	.comm	_PCAN_USB_EP_CMDIN,4,2          ## @PCAN_USB_EP_CMDIN
	.comm	_PCAN_USB_CMD_LEN,4,2           ## @PCAN_USB_CMD_LEN
	.comm	_PCAN_USB_COMMAND_TIMEOUT,4,2   ## @PCAN_USB_COMMAND_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting rsp f=0x%x n=0x%x failure: %d\n"

	.comm	_PCAN_USB_CMD_ARGS,8,3          ## @PCAN_USB_CMD_ARGS
	.comm	_PCAN_USB_CMD_ARGS_LEN,4,2      ## @PCAN_USB_CMD_ARGS_LEN
	.no_dead_strip	_pcan_usb_wait_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcan_usb_wait_rsp
_pcan_usb_wait_rsp:                     ; @pcan_usb_wait_rsp
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PCAN_USB_STATE_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCAN_USB_STATE_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x3, #0
	bl	_pcan_usb_send_cmd
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w23, [x22, #20]
Lloh3:
	adrp	x8, _PCAN_USB_EP_CMDIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAN_USB_EP_CMDIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	ldr	x2, [x22, #8]
Lloh6:
	adrp	x8, _PCAN_USB_CMD_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCAN_USB_CMD_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _PCAN_USB_COMMAND_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCAN_USB_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	add	x4, sp, #12
	mov	x0, x23
	bl	_usb_bulk_msg
	cbz	w0, LBB0_4
; %bb.3:
	mov	x23, x0
	ldr	w0, [x22, #16]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_netdev_err
	b	LBB0_7
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _PCAN_USB_CMD_ARGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCAN_USB_CMD_ARGS@GOTPAGEOFF]
	ldr	x9, [x22, #8]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh17:
	adrp	x8, _PCAN_USB_CMD_ARGS_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCAN_USB_CMD_ARGS_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_memcpy
LBB0_6:
	mov	w23, #0
LBB0_7:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAN_USB_STATE_CONNECTED,4,2   ; @PCAN_USB_STATE_CONNECTED
	.comm	_PCAN_USB_EP_CMDIN,4,2          ; @PCAN_USB_EP_CMDIN
	.comm	_PCAN_USB_CMD_LEN,4,2           ; @PCAN_USB_CMD_LEN
	.comm	_PCAN_USB_COMMAND_TIMEOUT,4,2   ; @PCAN_USB_COMMAND_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting rsp f=0x%x n=0x%x failure: %d\n"

	.comm	_PCAN_USB_CMD_ARGS,8,3          ; @PCAN_USB_CMD_ARGS
	.comm	_PCAN_USB_CMD_ARGS_LEN,4,2      ; @PCAN_USB_CMD_ARGS_LEN
	.no_dead_strip	_pcan_usb_wait_rsp
.subsections_via_symbols
