	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ican3_set_buserror
_ican3_set_buserror:                    ## @ican3_set_buserror
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ICAN3_FWTYPE_ICANOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_MSG_CCONFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$2, %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movl	$0, (%rax)
	movl	%r14d, 4(%rax)
	jmp	LBB0_4
LBB0_2:
	movq	_ICAN3_FWTYPE_CAL_CANOPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_MSG_LMTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$4, %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movq	_LMTS_CAN_CONF_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	$0, 4(%rcx)
	movl	%r14d, 12(%rcx)
LBB0_4:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ican3_send_msg
	jmp	LBB0_5
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICAN3_FWTYPE_ICANOS,8,3        ## @ICAN3_FWTYPE_ICANOS
	.comm	_MSG_CCONFREQ,4,2               ## @MSG_CCONFREQ
	.comm	_ICAN3_FWTYPE_CAL_CANOPEN,8,3   ## @ICAN3_FWTYPE_CAL_CANOPEN
	.comm	_MSG_LMTS,4,2                   ## @MSG_LMTS
	.comm	_LMTS_CAN_CONF_REQ,4,2          ## @LMTS_CAN_CONF_REQ
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_ican3_set_buserror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ican3_set_buserror
_ican3_set_buserror:                    ; @ican3_set_buserror
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICAN3_FWTYPE_ICANOS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICAN3_FWTYPE_ICANOS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _MSG_CCONFREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_CCONFREQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	w0, #2
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	ldr	x8, [sp, #8]
	stp	wzr, w20, [x8]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _ICAN3_FWTYPE_CAL_CANOPEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICAN3_FWTYPE_CAL_CANOPEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh9:
	adrp	x8, _MSG_LMTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_LMTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	w0, #4
	bl	_cpu_to_le16
	str	x0, [sp, #16]
Lloh12:
	adrp	x8, _LMTS_CAN_CONF_REQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LMTS_CAN_CONF_REQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	stp	w8, wzr, [x9]
	stp	wzr, w20, [x9, #8]
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ican3_send_msg
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ICAN3_FWTYPE_ICANOS,8,3        ; @ICAN3_FWTYPE_ICANOS
	.comm	_MSG_CCONFREQ,4,2               ; @MSG_CCONFREQ
	.comm	_ICAN3_FWTYPE_CAL_CANOPEN,8,3   ; @ICAN3_FWTYPE_CAL_CANOPEN
	.comm	_MSG_LMTS,4,2                   ; @MSG_LMTS
	.comm	_LMTS_CAN_CONF_REQ,4,2          ; @LMTS_CAN_CONF_REQ
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_ican3_set_buserror
.subsections_via_symbols
