	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open_candev                    ## -- Begin function open_candev
	.p2align	4, 0x90
_open_candev:                           ## @open_candev
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.3:
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpq	%rcx, %rax
	jl	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_netif_carrier_on
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bit-timing not yet defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
L_.str.1:                               ## @.str.1
	.asciz	"incorrect/missing data bit-timing\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open_candev                    ; -- Begin function open_candev
	.p2align	2
_open_candev:                           ; @open_candev
	.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	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _CAN_CTRLMODE_FD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x0, #16]
	cmp	x9, #0
	ccmp	x9, x8, #8, ne
	b.ge	LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_netdev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bit-timing not yet defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
l_.str.1:                               ; @.str.1
	.asciz	"incorrect/missing data bit-timing\n"

.subsections_via_symbols
