	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function can_validate
_can_validate:                          ## @can_validate
	.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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	_IFLA_CAN_CTRLMODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	callq	_nla_data
	movl	4(%rax), %ecx
	andl	(%rax), %ecx
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_IFLA_CAN_BITTIMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_6
## %bb.4:
	movq	_IFLA_CAN_DATA_BITTIMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	jne	LBB0_7
	jmp	LBB0_6
LBB0_5:
	movq	_IFLA_CAN_DATA_BITTIMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_CAN_CTRLMODE,8,3          ## @IFLA_CAN_CTRLMODE
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.comm	_IFLA_CAN_BITTIMING,8,3         ## @IFLA_CAN_BITTIMING
	.comm	_IFLA_CAN_DATA_BITTIMING,8,3    ## @IFLA_CAN_DATA_BITTIMING
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_can_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function can_validate
_can_validate:                          ; @can_validate
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _IFLA_CAN_CTRLMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_CAN_CTRLMODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x1, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.2:
	bl	_nla_data
	ldp	w8, w9, [x0]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _CAN_CTRLMODE_FD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _IFLA_CAN_BITTIMING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_CAN_BITTIMING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _IFLA_CAN_DATA_BITTIMING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLA_CAN_DATA_BITTIMING@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _IFLA_CAN_DATA_BITTIMING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IFLA_CAN_DATA_BITTIMING@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_5
LBB0_7:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_CAN_CTRLMODE,8,3          ; @IFLA_CAN_CTRLMODE
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.comm	_IFLA_CAN_BITTIMING,8,3         ; @IFLA_CAN_BITTIMING
	.comm	_IFLA_CAN_DATA_BITTIMING,8,3    ; @IFLA_CAN_DATA_BITTIMING
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_can_validate
.subsections_via_symbols
