	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_c_can_dev                ## -- Begin function alloc_c_can_dev
	.p2align	4, 0x90
_alloc_c_can_dev:                       ## @alloc_c_can_dev
	.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	_C_CAN_MSG_OBJ_TX_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_alloc_candev
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	32(%rax), %rsi
	movq	_c_can_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_C_CAN_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_netif_napi_add
	movq	%r14, 24(%rbx)
	movq	_c_can_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_c_can_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_c_can_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	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
	movl	%ecx, (%rbx)
LBB0_2:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_CAN_MSG_OBJ_TX_NUM,4,2       ## @C_CAN_MSG_OBJ_TX_NUM
	.comm	_c_can_poll,4,2                 ## @c_can_poll
	.comm	_C_CAN_NAPI_WEIGHT,4,2          ## @C_CAN_NAPI_WEIGHT
	.comm	_c_can_bittiming_const,4,2      ## @c_can_bittiming_const
	.comm	_c_can_set_mode,4,2             ## @c_can_set_mode
	.comm	_c_can_get_berr_counter,4,2     ## @c_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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_c_can_dev                ; -- Begin function alloc_c_can_dev
	.p2align	2
_alloc_c_can_dev:                       ; @alloc_c_can_dev
	.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, _C_CAN_MSG_OBJ_TX_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_CAN_MSG_OBJ_TX_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_alloc_candev
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	add	x1, x0, #32
Lloh3:
	adrp	x8, _c_can_poll@GOTPAGE
Lloh4:
	ldr	x8, [x8, _c_can_poll@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _C_CAN_NAPI_WEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C_CAN_NAPI_WEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_netif_napi_add
Lloh9:
	adrp	x8, _c_can_bittiming_const@GOTPAGE
Lloh10:
	ldr	x8, [x8, _c_can_bittiming_const@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
Lloh11:
	adrp	x8, _c_can_set_mode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _c_can_set_mode@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh14:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh16:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _c_can_get_berr_counter@GOTPAGE
Lloh24:
	ldr	x9, [x9, _c_can_get_berr_counter@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w8, w9, [x20]
LBB0_2:
	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 AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_C_CAN_MSG_OBJ_TX_NUM,4,2       ; @C_CAN_MSG_OBJ_TX_NUM
	.comm	_c_can_poll,4,2                 ; @c_can_poll
	.comm	_C_CAN_NAPI_WEIGHT,4,2          ; @C_CAN_NAPI_WEIGHT
	.comm	_c_can_bittiming_const,4,2      ; @c_can_bittiming_const
	.comm	_c_can_set_mode,4,2             ; @c_can_set_mode
	.comm	_c_can_get_berr_counter,4,2     ; @c_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
.subsections_via_symbols
