	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcba_usb_process_ka_can
_mcba_usb_process_ka_can:               ## @mcba_usb_process_ka_can
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	movl	24(%r14), %ecx
	movl	28(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movl	$0, (%rbx)
LBB0_2:
	movl	4(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_convert_can2host_bitrate
	movl	$0, 4(%rbx)
	movl	12(%rbx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.4:
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
LBB0_5:
	movq	(%r14), %rdx
	movq	%rdx, 16(%rbx)
	movq	8(%r14), %rcx
	movq	%rcx, 24(%rbx)
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.6:
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_MCBA_CAN_STATE_ERR_PSV_TH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	cmpq	%rsi, %rdx
	jg	LBB0_11
## %bb.8:
	cmpq	%rsi, %rcx
	jg	LBB0_11
## %bb.9:
	movq	_MCBA_CAN_STATE_WRN_TH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	cmpq	%rsi, %rdx
	jg	LBB0_11
## %bb.10:
	cmpq	%rsi, %rcx
	jle	LBB0_12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIC CAN version %hhu.%hhu\n"

L_.str.1:                               ## @.str.1
	.asciz	"Wrong bitrate reported by the device (%u). Expected %u"

	.comm	_CAN_STATE_BUS_OFF,4,2          ## @CAN_STATE_BUS_OFF
	.comm	_MCBA_CAN_STATE_ERR_PSV_TH,8,3  ## @MCBA_CAN_STATE_ERR_PSV_TH
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_MCBA_CAN_STATE_WRN_TH,8,3      ## @MCBA_CAN_STATE_WRN_TH
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.no_dead_strip	_mcba_usb_process_ka_can
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcba_usb_process_ka_can
_mcba_usb_process_ka_can:               ; @mcba_usb_process_ka_can
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	ldp	w3, w2, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
	str	wzr, [x19]
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_convert_can2host_bitrate
	str	wzr, [x19, #4]
	ldr	w3, [x19, #12]
	cmp	w0, w3
	b.eq	LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
LBB0_5:
	ldp	x8, x9, [x20]
	stp	x8, x9, [x19, #16]
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh6:
	adrp	x10, _MCBA_CAN_STATE_ERR_PSV_TH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MCBA_CAN_STATE_ERR_PSV_TH@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x10, #0, le
	b.le	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x10, _MCBA_CAN_STATE_WRN_TH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MCBA_CAN_STATE_WRN_TH@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x10, #0, le
	b.le	LBB0_12
; %bb.10:
Lloh14:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIC CAN version %hhu.%hhu\n"

l_.str.1:                               ; @.str.1
	.asciz	"Wrong bitrate reported by the device (%u). Expected %u"

	.comm	_CAN_STATE_BUS_OFF,4,2          ; @CAN_STATE_BUS_OFF
	.comm	_MCBA_CAN_STATE_ERR_PSV_TH,8,3  ; @MCBA_CAN_STATE_ERR_PSV_TH
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_MCBA_CAN_STATE_WRN_TH,8,3      ; @MCBA_CAN_STATE_WRN_TH
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.no_dead_strip	_mcba_usb_process_ka_can
.subsections_via_symbols
