	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_pciefd_handle_nack_packet
_kvaser_pciefd_handle_nack_packet:      ## @kvaser_pciefd_handle_nack_packet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_can_err_skb
	incl	12(%rbx)
	movq	(%r15), %rcx
	movq	_KVASER_PCIEFD_APACKET_ABL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	_CAN_ERR_LOSTARB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-32(%rbp), %rdx
	orl	%ecx, 8(%rdx)
	incl	8(%r14)
	jmp	LBB0_7
LBB0_4:
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_CAN_ERR_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-32(%rbp), %rdx
	orl	%ecx, 8(%rdx)
LBB0_7:
	movq	_CAN_ERR_BUSERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-32(%rbp), %rdx
	orl	%ecx, 8(%rdx)
	movl	(%rdx), %ecx
	addl	%ecx, 8(%rbx)
	incl	4(%rbx)
	movq	%rax, %rdi
	callq	_netif_rx
	jmp	LBB0_8
LBB0_2:
	incl	8(%r14)
LBB0_3:
	incl	(%rbx)
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVASER_PCIEFD_APACKET_ABL,4,2  ## @KVASER_PCIEFD_APACKET_ABL
	.comm	_CAN_ERR_LOSTARB,4,2            ## @CAN_ERR_LOSTARB
	.comm	_CAN_ERR_ACK,4,2                ## @CAN_ERR_ACK
	.comm	_CAN_ERR_BUSERROR,4,2           ## @CAN_ERR_BUSERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory left for err_skb\n"

	.no_dead_strip	_kvaser_pciefd_handle_nack_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_pciefd_handle_nack_packet
_kvaser_pciefd_handle_nack_packet:      ; @kvaser_pciefd_handle_nack_packet
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_err_skb
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _KVASER_PCIEFD_APACKET_ABL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVASER_PCIEFD_APACKET_ABL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _CAN_ERR_LOSTARB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_ERR_LOSTARB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_5
LBB0_3:
	cbz	x0, LBB0_7
; %bb.4:
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_5:
Lloh9:
	adrp	x8, _CAN_ERR_BUSERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_ERR_BUSERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	ldr	w8, [x9]
	ldp	w10, w9, [x19, #4]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19, #4]
	bl	_netif_rx
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_7:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x0, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_PCIEFD_APACKET_ABL,4,2  ; @KVASER_PCIEFD_APACKET_ABL
	.comm	_CAN_ERR_LOSTARB,4,2            ; @CAN_ERR_LOSTARB
	.comm	_CAN_ERR_ACK,4,2                ; @CAN_ERR_ACK
	.comm	_CAN_ERR_BUSERROR,4,2           ; @CAN_ERR_BUSERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory left for err_skb\n"

	.no_dead_strip	_kvaser_pciefd_handle_nack_packet
.subsections_via_symbols
