	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_usbcan_conditionally_rx_error
_kvaser_usb_leaf_usbcan_conditionally_rx_error: ## @kvaser_usb_leaf_usbcan_conditionally_rx_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %edx
	cmpl	(%rdi), %edx
	jae	LBB0_11
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	8(%rsi), %rdx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	je	LBB0_3
## %bb.2:
	movq	_USBCAN_ERROR_STATE_TX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rsi)
	movl	$1, %eax
LBB0_3:
	movq	16(%rsi), %rdx
	cmpq	8(%rcx), %rdx
	je	LBB0_5
## %bb.4:
	movq	_USBCAN_ERROR_STATE_RX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rsi)
	movl	$1, %eax
LBB0_5:
	movq	_M16C_STATE_BUS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 24(%rsi)
	je	LBB0_9
## %bb.6:
	testl	%ecx, 28(%rsi)
	je	LBB0_7
LBB0_9:
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	popq	%rbp
	jmp	_kvaser_usb_leaf_rx_error       ## TAILCALL
LBB0_11:
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_10:
	popq	%rbp
	retq
LBB0_7:
	movq	_USBCAN_ERROR_STATE_BUSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rsi)
	popq	%rbp
	jmp	_kvaser_usb_leaf_rx_error       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid channel number (%d)\n"

	.comm	_USBCAN_ERROR_STATE_TX_ERROR,4,2 ## @USBCAN_ERROR_STATE_TX_ERROR
	.comm	_USBCAN_ERROR_STATE_RX_ERROR,4,2 ## @USBCAN_ERROR_STATE_RX_ERROR
	.comm	_M16C_STATE_BUS_ERROR,4,2       ## @M16C_STATE_BUS_ERROR
	.comm	_USBCAN_ERROR_STATE_BUSERROR,4,2 ## @USBCAN_ERROR_STATE_BUSERROR
	.no_dead_strip	_kvaser_usb_leaf_usbcan_conditionally_rx_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_leaf_usbcan_conditionally_rx_error
_kvaser_usb_leaf_usbcan_conditionally_rx_error: ; @kvaser_usb_leaf_usbcan_conditionally_rx_error
	.cfi_startproc
; %bb.0:
	ldr	w2, [x1]
	ldr	w8, [x0]
	cmp	w2, w8
	b.hs	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x9, [x8, x2, lsl #3]
	ldr	x8, [x1, #8]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	b	_dev_err
LBB0_4:
Lloh2:
	adrp	x8, _USBCAN_ERROR_STATE_TX_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USBCAN_ERROR_STATE_TX_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w10, [x1, #32]
	orr	w8, w10, w8
	str	w8, [x1, #32]
	mov	w8, #1
LBB0_5:
	ldr	x10, [x1, #16]
	ldr	x9, [x9, #8]
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _USBCAN_ERROR_STATE_RX_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USBCAN_ERROR_STATE_RX_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x1, #32]
	orr	w8, w9, w8
	str	w8, [x1, #32]
	mov	w8, #1
LBB0_7:
	ldr	w10, [x1, #24]
Lloh8:
	adrp	x9, _M16C_STATE_BUS_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M16C_STATE_BUS_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_9
; %bb.8:
	ldr	w10, [x1, #28]
	tst	w10, w9
	b.eq	LBB0_12
LBB0_9:
	cbz	w8, LBB0_11
; %bb.10:
	b	_kvaser_usb_leaf_rx_error
LBB0_11:
	ret
LBB0_12:
Lloh11:
	adrp	x8, _USBCAN_ERROR_STATE_BUSERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USBCAN_ERROR_STATE_BUSERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x1, #32]
	orr	w8, w9, w8
	str	w8, [x1, #32]
	b	_kvaser_usb_leaf_rx_error
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid channel number (%d)\n"

	.comm	_USBCAN_ERROR_STATE_TX_ERROR,4,2 ; @USBCAN_ERROR_STATE_TX_ERROR
	.comm	_USBCAN_ERROR_STATE_RX_ERROR,4,2 ; @USBCAN_ERROR_STATE_RX_ERROR
	.comm	_M16C_STATE_BUS_ERROR,4,2       ; @M16C_STATE_BUS_ERROR
	.comm	_USBCAN_ERROR_STATE_BUSERROR,4,2 ; @USBCAN_ERROR_STATE_BUSERROR
	.no_dead_strip	_kvaser_usb_leaf_usbcan_conditionally_rx_error
.subsections_via_symbols
