	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_hydra_one_shot_fail
_kvaser_usb_hydra_one_shot_fail:        ## @kvaser_usb_hydra_one_shot_fail
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_CAN_ERR_BUSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	orl	%eax, 8(%rcx)
	movl	(%r12), %edi
	callq	_le32_to_cpu
	movq	_KVASER_USB_HYDRA_CF_FLAG_OSM_NACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CAN_ERR_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-40(%rbp), %rdx
	orl	%ecx, 8(%rdx)
LBB0_4:
	movq	_KVASER_USB_HYDRA_CF_FLAG_ABL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.6:
	movq	_CAN_ERR_LOSTARB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-40(%rbp), %rax
	orl	%ecx, 8(%rax)
	incl	(%r15)
	jmp	LBB0_7
LBB0_1:
	incl	12(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_warn
	jmp	LBB0_8
LBB0_5:
	movq	-40(%rbp), %rax
LBB0_7:
	incl	8(%rbx)
	incl	4(%rbx)
	movl	(%rax), %eax
	addl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_netif_rx
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory left for err_skb\n"

	.comm	_CAN_ERR_BUSERROR,4,2           ## @CAN_ERR_BUSERROR
	.comm	_KVASER_USB_HYDRA_CF_FLAG_OSM_NACK,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_OSM_NACK
	.comm	_CAN_ERR_ACK,4,2                ## @CAN_ERR_ACK
	.comm	_KVASER_USB_HYDRA_CF_FLAG_ABL,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_ABL
	.comm	_CAN_ERR_LOSTARB,4,2            ## @CAN_ERR_LOSTARB
	.no_dead_strip	_kvaser_usb_hydra_one_shot_fail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_hydra_one_shot_fail
_kvaser_usb_hydra_one_shot_fail:        ; @kvaser_usb_hydra_one_shot_fail
	.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	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _CAN_ERR_BUSERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_ERR_BUSERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	ldr	w0, [x22]
	bl	_le32_to_cpu
Lloh3:
	adrp	x8, _KVASER_USB_HYDRA_CF_FLAG_OSM_NACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CF_FLAG_OSM_NACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CAN_ERR_ACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAN_ERR_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
LBB0_3:
Lloh9:
	adrp	x8, _KVASER_USB_HYDRA_CF_FLAG_ABL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CF_FLAG_ABL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _CAN_ERR_LOSTARB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAN_ERR_LOSTARB@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
	ldr	w9, [x21]
	add	w9, w9, #1
	str	w9, [x21]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	b	LBB0_8
LBB0_6:
	ldr	x8, [sp, #8]
LBB0_7:
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_netif_rx
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory left for err_skb\n"

	.comm	_CAN_ERR_BUSERROR,4,2           ; @CAN_ERR_BUSERROR
	.comm	_KVASER_USB_HYDRA_CF_FLAG_OSM_NACK,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_OSM_NACK
	.comm	_CAN_ERR_ACK,4,2                ; @CAN_ERR_ACK
	.comm	_KVASER_USB_HYDRA_CF_FLAG_ABL,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_ABL
	.comm	_CAN_ERR_LOSTARB,4,2            ; @CAN_ERR_LOSTARB
	.no_dead_strip	_kvaser_usb_hydra_one_shot_fail
.subsections_via_symbols
