	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_get_software_info_inner
_kvaser_usb_leaf_get_software_info_inner: ## @kvaser_usb_leaf_get_software_info_inner
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_CMD_GET_SOFTWARE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_kvaser_usb_leaf_send_simple_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_CMD_GET_SOFTWARE_INFO_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_kvaser_usb_leaf_wait_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	16(%r14), %eax
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movl	-20(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r14)
	movl	-24(%rbp), %edi
	jmp	LBB0_6
LBB0_5:
	movl	-28(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r14)
	movl	-32(%rbp), %edi
LBB0_6:
	callq	_le16_to_cpu
	movq	%rax, (%r14)
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_GET_SOFTWARE_INFO,4,2      ## @CMD_GET_SOFTWARE_INFO
	.comm	_CMD_GET_SOFTWARE_INFO_REPLY,4,2 ## @CMD_GET_SOFTWARE_INFO_REPLY
	.no_dead_strip	_kvaser_usb_leaf_get_software_info_inner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_leaf_get_software_info_inner
_kvaser_usb_leaf_get_software_info_inner: ; @kvaser_usb_leaf_get_software_info_inner
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CMD_GET_SOFTWARE_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_GET_SOFTWARE_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_kvaser_usb_leaf_send_simple_cmd
	cbnz	w0, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _CMD_GET_SOFTWARE_INFO_REPLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_GET_SOFTWARE_INFO_REPLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_kvaser_usb_leaf_wait_cmd
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
	ldr	w0, [sp, #8]
	b	LBB0_6
LBB0_5:
	ldr	w0, [sp, #4]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
	ldr	w0, [sp]
LBB0_6:
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_GET_SOFTWARE_INFO,4,2      ; @CMD_GET_SOFTWARE_INFO
	.comm	_CMD_GET_SOFTWARE_INFO_REPLY,4,2 ; @CMD_GET_SOFTWARE_INFO_REPLY
	.no_dead_strip	_kvaser_usb_leaf_get_software_info_inner
.subsections_via_symbols
