	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_sja1000dev               ## -- Begin function alloc_sja1000dev
	.p2align	4, 0x90
_alloc_sja1000dev:                      ## @alloc_sja1000dev
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leal	48(%r14), %edi
	movq	_SJA1000_ECHO_SKB_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_candev
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	movq	_sja1000_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_sja1000_set_bittiming@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_sja1000_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_sja1000_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_ONE_SHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CAN_CTRLMODE_PRESUME_ACK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rax
	addq	$48, %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1000_ECHO_SKB_MAX,4,2       ## @SJA1000_ECHO_SKB_MAX
	.comm	_sja1000_bittiming_const,4,2    ## @sja1000_bittiming_const
	.comm	_sja1000_set_bittiming,4,2      ## @sja1000_set_bittiming
	.comm	_sja1000_set_mode,4,2           ## @sja1000_set_mode
	.comm	_sja1000_get_berr_counter,4,2   ## @sja1000_get_berr_counter
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ## @CAN_CTRLMODE_ONE_SHOT
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_CAN_CTRLMODE_PRESUME_ACK,4,2   ## @CAN_CTRLMODE_PRESUME_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_sja1000dev               ; -- Begin function alloc_sja1000dev
	.p2align	2
_alloc_sja1000dev:                      ; @alloc_sja1000dev
	.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
	add	w0, w0, #48
Lloh0:
	adrp	x8, _SJA1000_ECHO_SKB_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1000_ECHO_SKB_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_alloc_candev
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
Lloh3:
	adrp	x8, _sja1000_bittiming_const@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sja1000_bittiming_const@GOTPAGEOFF]
Lloh5:
	adrp	x9, _sja1000_set_bittiming@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sja1000_set_bittiming@GOTPAGEOFF]
	stp	x8, x20, [x0, #32]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _sja1000_set_mode@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sja1000_set_mode@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh11:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _CAN_CTRLMODE_ONE_SHOT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_CTRLMODE_ONE_SHOT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _CAN_CTRLMODE_PRESUME_ACK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CAN_CTRLMODE_PRESUME_ACK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _sja1000_get_berr_counter@GOTPAGE
Lloh30:
	ldr	x9, [x9, _sja1000_get_berr_counter@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #16]
	add	x0, x0, #8
	bl	_spin_lock_init
	cbz	w19, LBB0_3
; %bb.2:
	add	x8, x21, #48
	str	x8, [x21]
LBB0_3:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1000_ECHO_SKB_MAX,4,2       ; @SJA1000_ECHO_SKB_MAX
	.comm	_sja1000_bittiming_const,4,2    ; @sja1000_bittiming_const
	.comm	_sja1000_set_bittiming,4,2      ; @sja1000_set_bittiming
	.comm	_sja1000_set_mode,4,2           ; @sja1000_set_mode
	.comm	_sja1000_get_berr_counter,4,2   ; @sja1000_get_berr_counter
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ; @CAN_CTRLMODE_ONE_SHOT
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_CAN_CTRLMODE_PRESUME_ACK,4,2   ; @CAN_CTRLMODE_PRESUME_ACK
.subsections_via_symbols
