	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_mscandev                 ## -- Begin function alloc_mscandev
	.p2align	4, 0x90
_alloc_mscandev:                        ## @alloc_mscandev
	.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	_MSCAN_ECHO_SKB_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_alloc_candev
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	_mscan_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%r14)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
	movq	%rax, %rbx
	leaq	32(%rax), %rsi
	movq	_mscan_rx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_netif_napi_add
	movq	_mscan_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_mscan_do_set_bittiming@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_mscan_do_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	_TX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	(%rbx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rdx,%rcx,8)
	movl	$1, %esi
	shll	%cl, %esi
	movl	%esi, 4(%rdx,%rcx,8)
	incq	%rcx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_3
LBB0_4:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSCAN_ECHO_SKB_MAX,4,2         ## @MSCAN_ECHO_SKB_MAX
	.comm	_mscan_netdev_ops,4,2           ## @mscan_netdev_ops
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
	.comm	_mscan_rx_poll,4,2              ## @mscan_rx_poll
	.comm	_mscan_bittiming_const,4,2      ## @mscan_bittiming_const
	.comm	_mscan_do_set_bittiming,4,2     ## @mscan_do_set_bittiming
	.comm	_mscan_do_set_mode,4,2          ## @mscan_do_set_mode
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_TX_QUEUE_SIZE,4,2              ## @TX_QUEUE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_mscandev                 ; -- Begin function alloc_mscandev
	.p2align	2
_alloc_mscandev:                        ; @alloc_mscandev
	.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
Lloh0:
	adrp	x8, _MSCAN_ECHO_SKB_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSCAN_ECHO_SKB_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_alloc_candev
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
Lloh3:
	adrp	x8, _mscan_netdev_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mscan_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh5:
	adrp	x8, _IFF_ECHO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_ECHO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	add	x1, x0, #32
Lloh8:
	adrp	x8, _mscan_rx_poll@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mscan_rx_poll@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #8
	bl	_netif_napi_add
Lloh11:
	adrp	x8, _mscan_bittiming_const@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mscan_bittiming_const@GOTPAGEOFF]
	str	x8, [x20, #24]
Lloh13:
	adrp	x8, _mscan_do_set_bittiming@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mscan_do_set_bittiming@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh16:
	adrp	x8, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh18:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _mscan_do_set_mode@GOTPAGE
Lloh23:
	ldr	x9, [x9, _mscan_do_set_mode@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
Lloh25:
	adrp	x8, _TX_QUEUE_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TX_QUEUE_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x20]
	add	x10, x10, #4
	mov	w11, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w12, w11, w9
	stp	w9, w12, [x10, #-4]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	add	x10, x10, #8
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSCAN_ECHO_SKB_MAX,4,2         ; @MSCAN_ECHO_SKB_MAX
	.comm	_mscan_netdev_ops,4,2           ; @mscan_netdev_ops
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
	.comm	_mscan_rx_poll,4,2              ; @mscan_rx_poll
	.comm	_mscan_bittiming_const,4,2      ; @mscan_bittiming_const
	.comm	_mscan_do_set_bittiming,4,2     ; @mscan_do_set_bittiming
	.comm	_mscan_do_set_mode,4,2          ; @mscan_do_set_mode
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_TX_QUEUE_SIZE,4,2              ; @TX_QUEUE_SIZE
.subsections_via_symbols
