	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_hydra_get_capabilities
_kvaser_usb_hydra_get_capabilities:     ## @kvaser_usb_hydra_get_capabilities
	.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	_KVASER_USB_CAP_EXT_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_kvaser_usb_hydra_get_single_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	-24(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_5:
	movq	_KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_kvaser_usb_hydra_get_single_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	-24(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_8:
	movq	_KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_kvaser_usb_hydra_get_single_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	-24(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.11:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_12
LBB0_1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_KVASER_USB_CAP_EXT_CAP,4,2     ## @KVASER_USB_CAP_EXT_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No extended capability support. Upgrade your device.\n"

	.comm	_KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE,4,2 ## @KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE
L_.str.1:                               ## @.str.1
	.asciz	"KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE failed %u\n"

	.comm	_KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT,4,2 ## @KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT
L_.str.2:                               ## @.str.2
	.asciz	"KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT failed %u\n"

	.comm	_KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT,4,2 ## @KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT
L_.str.3:                               ## @.str.3
	.asciz	"KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT failed %u\n"

	.no_dead_strip	_kvaser_usb_hydra_get_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_hydra_get_capabilities
_kvaser_usb_hydra_get_capabilities:     ; @kvaser_usb_hydra_get_capabilities
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _KVASER_USB_CAP_EXT_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVASER_USB_CAP_EXT_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_kvaser_usb_hydra_get_single_capability
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x19]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_4:
Lloh8:
	adrp	x8, _KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_kvaser_usb_hydra_get_single_capability
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_7:
Lloh13:
	adrp	x8, _KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_kvaser_usb_hydra_get_single_capability
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x0, [x19]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_dev_info
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_KVASER_USB_CAP_EXT_CAP,4,2     ; @KVASER_USB_CAP_EXT_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No extended capability support. Upgrade your device.\n"

	.comm	_KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE,4,2 ; @KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE
l_.str.1:                               ; @.str.1
	.asciz	"KVASER_USB_HYDRA_CAP_CMD_LISTEN_MODE failed %u\n"

	.comm	_KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT,4,2 ; @KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT
l_.str.2:                               ; @.str.2
	.asciz	"KVASER_USB_HYDRA_CAP_CMD_ERR_REPORT failed %u\n"

	.comm	_KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT,4,2 ; @KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT
l_.str.3:                               ; @.str.3
	.asciz	"KVASER_USB_HYDRA_CAP_CMD_ONE_SHOT failed %u\n"

	.no_dead_strip	_kvaser_usb_hydra_get_capabilities
.subsections_via_symbols
