	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvaser_usb_send_cmd_async      ## -- Begin function kvaser_usb_send_cmd_async
	.p2align	4, 0x90
_kvaser_usb_send_cmd_async:             ## @kvaser_usb_send_cmd_async
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	16(%rdi), %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	8(%r12), %r14d
	movq	(%r12), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_usb_sndbulkpipe
	movq	_kvaser_usb_send_cmd_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r13, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_usb_fill_bulk_urb
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_usb_anchor_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_usb_unanchor_urb
LBB0_4:
	movq	%rbx, %rdi
	callq	_usb_free_urb
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_kvaser_usb_send_cmd_callback,4,2 ## @kvaser_usb_send_cmd_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error transmitting URB\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvaser_usb_send_cmd_async      ; -- Begin function kvaser_usb_send_cmd_async
	.p2align	2
_kvaser_usb_send_cmd_async:             ; @kvaser_usb_send_cmd_async
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldp	x20, x26, [x0, #8]
Lloh0:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w24, [x26, #8]
	ldr	x8, [x26]
	ldr	w1, [x8]
	mov	x0, x24
	bl	_usb_sndbulkpipe
	mov	x2, x0
Lloh2:
	adrp	x8, _kvaser_usb_send_cmd_callback@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kvaser_usb_send_cmd_callback@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x23
	mov	x4, x22
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	mov	x0, x19
	mov	x1, x21
	bl	_usb_anchor_urb
	ldr	w1, [x25]
	mov	x0, x19
	bl	_usb_submit_urb
	cbz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_usb_unanchor_urb
LBB0_3:
	mov	x0, x19
	bl	_usb_free_urb
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_kvaser_usb_send_cmd_callback,4,2 ; @kvaser_usb_send_cmd_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error transmitting URB\n"

.subsections_via_symbols
