	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_dev_setup
_m_can_dev_setup:                       ## @m_can_dev_setup
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	80(%rdi), %r14
	callq	_m_can_check_core_release
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%eax, %r15d
	cmpl	$0, 76(%r12)
	jne	LBB0_3
## %bb.2:
	leaq	72(%r12), %rsi
	movq	_m_can_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_CAN_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_netif_napi_add
LBB0_3:
	movl	%r15d, (%r12)
	movq	_m_can_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_m_can_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%r12)
	cmpl	$32, %r15d
	je	LBB0_12
## %bb.4:
	cmpl	$31, %r15d
	je	LBB0_19
## %bb.5:
	cmpl	$30, %r15d
	jne	LBB0_26
## %bb.6:
	movq	_CAN_CTRLMODE_FD_NON_ISO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_can_set_static_ctrlmode
	movq	56(%r12), %rax
	movq	64(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	movq	_m_can_bittiming_const_30X@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	%rcx, 40(%r12)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.9:
	movq	_m_can_data_bittiming_const_30X@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_11:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_12:
	movq	56(%r12), %rax
	movq	64(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.13:
	movq	_m_can_bittiming_const_31X@GOTPCREL(%rip), %rcx
LBB0_14:
	movq	%rcx, 40(%r12)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_m_can_data_bittiming_const_31X@GOTPCREL(%rip), %rax
LBB0_16:
	movq	%rax, 32(%r12)
	movq	%r12, %rdi
	callq	_m_can_niso_supported
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_CAN_CTRLMODE_FD_NON_ISO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	orl	%eax, 24(%r12)
	jmp	LBB0_24
LBB0_19:
	movq	_CAN_CTRLMODE_FD_NON_ISO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_can_set_static_ctrlmode
	movq	56(%r12), %rax
	movq	64(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_21
## %bb.20:
	movq	_m_can_bittiming_const_31X@GOTPCREL(%rip), %rcx
LBB0_21:
	movq	%rcx, 40(%r12)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	_m_can_data_bittiming_const_31X@GOTPCREL(%rip), %rax
LBB0_23:
	movq	%rax, 32(%r12)
LBB0_24:
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.25:
	movq	%r12, %rdi
	callq	*%rcx
	jmp	LBB0_28
LBB0_26:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_27:
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported version number: %2d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_m_can_poll,4,2                 ## @m_can_poll
	.comm	_M_CAN_NAPI_WEIGHT,4,2          ## @M_CAN_NAPI_WEIGHT
	.comm	_m_can_set_mode,4,2             ## @m_can_set_mode
	.comm	_m_can_get_berr_counter,4,2     ## @m_can_get_berr_counter
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.comm	_CAN_CTRLMODE_FD_NON_ISO,4,2    ## @CAN_CTRLMODE_FD_NON_ISO
	.comm	_m_can_bittiming_const_30X,4,2  ## @m_can_bittiming_const_30X
	.comm	_m_can_data_bittiming_const_30X,4,2 ## @m_can_data_bittiming_const_30X
	.comm	_m_can_bittiming_const_31X,4,2  ## @m_can_bittiming_const_31X
	.comm	_m_can_data_bittiming_const_31X,4,2 ## @m_can_data_bittiming_const_31X
	.no_dead_strip	_m_can_dev_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m_can_dev_setup
_m_can_dev_setup:                       ; @m_can_dev_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x20, [x0, #80]
	bl	_m_can_check_core_release
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19, #76]
	cbnz	w8, LBB0_3
; %bb.2:
	add	x1, x19, #72
Lloh0:
	adrp	x8, _m_can_poll@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m_can_poll@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _M_CAN_NAPI_WEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_CAN_NAPI_WEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_netif_napi_add
LBB0_3:
Lloh6:
	adrp	x8, _m_can_set_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _m_can_set_mode@GOTPAGEOFF]
	str	w21, [x19]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _m_can_get_berr_counter@GOTPAGE
Lloh10:
	ldr	x9, [x9, _m_can_get_berr_counter@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh12:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _CAN_CTRLMODE_FD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #24]
	cmp	w21, #32
	b.eq	LBB0_8
; %bb.4:
	cmp	w21, #31
	b.eq	LBB0_9
; %bb.5:
	cmp	w21, #30
	b.ne	LBB0_14
; %bb.6:
Lloh24:
	adrp	x8, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_can_set_static_ctrlmode
Lloh27:
	adrp	x8, _m_can_bittiming_const_30X@GOTPAGE
Lloh28:
	ldr	x8, [x8, _m_can_bittiming_const_30X@GOTPAGEOFF]
	ldp	x10, x9, [x19, #56]
	cmp	x9, #0
	csel	x8, x8, x9, eq
Lloh29:
	adrp	x9, _m_can_data_bittiming_const_30X@GOTPAGE
Lloh30:
	ldr	x9, [x9, _m_can_data_bittiming_const_30X@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #16]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	b	LBB0_15
LBB0_8:
Lloh33:
	adrp	x8, _m_can_bittiming_const_31X@GOTPAGE
Lloh34:
	ldr	x8, [x8, _m_can_bittiming_const_31X@GOTPAGEOFF]
	ldp	x10, x9, [x19, #56]
	cmp	x9, #0
	csel	x8, x8, x9, eq
Lloh35:
	adrp	x9, _m_can_data_bittiming_const_31X@GOTPAGE
Lloh36:
	ldr	x9, [x9, _m_can_data_bittiming_const_31X@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x9, x10, eq
	stp	x9, x8, [x19, #32]
	mov	x0, x19
	bl	_m_can_niso_supported
Lloh37:
	adrp	x8, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_11
LBB0_9:
Lloh40:
	adrp	x8, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_can_set_static_ctrlmode
Lloh43:
	adrp	x8, _m_can_bittiming_const_31X@GOTPAGE
Lloh44:
	ldr	x8, [x8, _m_can_bittiming_const_31X@GOTPAGEOFF]
	ldp	x10, x9, [x19, #56]
	cmp	x9, #0
	csel	x8, x8, x9, eq
Lloh45:
	adrp	x9, _m_can_data_bittiming_const_31X@GOTPAGE
Lloh46:
	ldr	x9, [x9, _m_can_data_bittiming_const_31X@GOTPAGEOFF]
LBB0_10:
	cmp	x10, #0
	csel	x9, x9, x10, eq
	stp	x9, x8, [x19, #32]
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	blr	x8
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	ldr	w0, [x19, #16]
Lloh47:
	adrp	x1, l_.str@PAGE
Lloh48:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
LBB0_15:
	bl	_dev_err
Lloh49:
	adrp	x8, _EINVAL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported version number: %2d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_m_can_poll,4,2                 ; @m_can_poll
	.comm	_M_CAN_NAPI_WEIGHT,4,2          ; @M_CAN_NAPI_WEIGHT
	.comm	_m_can_set_mode,4,2             ; @m_can_set_mode
	.comm	_m_can_get_berr_counter,4,2     ; @m_can_get_berr_counter
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.comm	_CAN_CTRLMODE_FD_NON_ISO,4,2    ; @CAN_CTRLMODE_FD_NON_ISO
	.comm	_m_can_bittiming_const_30X,4,2  ; @m_can_bittiming_const_30X
	.comm	_m_can_data_bittiming_const_30X,4,2 ; @m_can_data_bittiming_const_30X
	.comm	_m_can_bittiming_const_31X,4,2  ; @m_can_bittiming_const_31X
	.comm	_m_can_data_bittiming_const_31X,4,2 ; @m_can_data_bittiming_const_31X
	.no_dead_strip	_m_can_dev_setup
.subsections_via_symbols
