	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcan_usb_pro_send_req          ## -- Begin function pcan_usb_pro_send_req
	.p2align	4, 0x90
_pcan_usb_pro_send_req:                 ## @pcan_usb_pro_send_req
	.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:
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movq	_USB_RECIP_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	8(%rdi), %edi
	xorl	%esi, %esi
	cmpl	$128, %r15d
	jne	LBB0_4
## %bb.3:
	callq	_usb_sndctrlpipe
	movl	%eax, %esi
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_4:
	callq	_usb_rcvctrlpipe
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_5:
	movq	%r13, %r10
	movl	8(%r12), %edi
	movq	_USB_CTRL_GET_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	subq	$8, %rsp
	xorl	%r13d, %r13d
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_netdev_info
	movl	%ebx, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAN_USB_STATE_CONNECTED,4,2   ## @PCAN_USB_STATE_CONNECTED
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,4,2            ## @USB_RECIP_OTHER
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ## @USB_CTRL_GET_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to request usb[type=%d value=%d] err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcan_usb_pro_send_req          ; -- Begin function pcan_usb_pro_send_req
	.p2align	2
_pcan_usb_pro_send_req:                 ; @pcan_usb_pro_send_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	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_3
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_RECIP_OTHER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_RECIP_OTHER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	w0, [x0, #8]
	cmp	w1, #128
	b.ne	LBB0_4
; %bb.2:
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x25, x0
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x25, x0
Lloh9:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w24, w8, w24
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_memset
LBB0_5:
	ldr	w0, [x21, #8]
Lloh12:
	adrp	x8, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [sp]
	mov	x1, x25
	mov	x2, x20
	mov	x3, x24
	mov	x4, x19
	mov	w5, #0
	mov	x6, x23
	mov	x7, x22
	bl	_usb_control_msg
	mov	x22, x0
	mov	w0, #0
	tbz	w22, #31, LBB0_7
; %bb.6:
	ldr	w0, [x21, #4]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_netdev_info
	mov	x0, x22
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAN_USB_STATE_CONNECTED,4,2   ; @PCAN_USB_STATE_CONNECTED
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,4,2            ; @USB_RECIP_OTHER
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ; @USB_CTRL_GET_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to request usb[type=%d value=%d] err=%d\n"

.subsections_via_symbols
