	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_hydra_tx_acknowledge
_kvaser_usb_hydra_tx_acknowledge:       ## @kvaser_usb_hydra_tx_acknowledge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_kvaser_usb_hydra_get_cmd_transid
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kvaser_usb_hydra_net_priv_from_cmd
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	movq	8(%rax), %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	(%rbx), %rdi
	movq	_CMD_EXTENDED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le32_to_cpu
	movq	_KVASER_USB_HYDRA_CF_FLAG_OSM_NACK@GOTPCREL(%rip), %rcx
	movq	_KVASER_USB_HYDRA_CF_FLAG_ABL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_kvaser_usb_hydra_one_shot_fail
	movq	24(%r12), %r13
	movq	(%r14), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	24(%r12), %r13
	movq	(%r14), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_10
LBB0_8:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_10:
	movq	8(%r12), %r15
	incl	4(%r15)
	movq	%rbx, %rax
	shlq	$4, %rax
	movl	8(%r13,%rax), %edi
	callq	_can_dlc2len
	addl	%eax, (%r15)
LBB0_11:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rdi
	shlq	$4, %rbx
	movq	(%r13,%rbx), %rsi
	callq	_can_get_echo_skb
	movq	(%r14), %rax
	movq	%rax, (%r13,%rbx)
	decl	16(%r12)
	movq	8(%r12), %rdi
	callq	_netif_wake_queue
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_EXTENDED,8,3               ## @CMD_EXTENDED
	.comm	_KVASER_USB_HYDRA_CF_FLAG_OSM_NACK,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_OSM_NACK
	.comm	_KVASER_USB_HYDRA_CF_FLAG_ABL,4,2 ## @KVASER_USB_HYDRA_CF_FLAG_ABL
	.no_dead_strip	_kvaser_usb_hydra_tx_acknowledge
.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_tx_acknowledge
_kvaser_usb_hydra_tx_acknowledge:       ; @kvaser_usb_hydra_tx_acknowledge
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_kvaser_usb_hydra_get_cmd_transid
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_kvaser_usb_hydra_net_priv_from_cmd
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_netif_device_present
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x0, [x22]
Lloh0:
	adrp	x8, _CMD_EXTENDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_EXTENDED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_le32_to_cpu
Lloh3:
	adrp	x8, _KVASER_USB_HYDRA_CF_FLAG_OSM_NACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVASER_USB_HYDRA_CF_FLAG_OSM_NACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KVASER_USB_HYDRA_CF_FLAG_ABL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KVASER_USB_HYDRA_CF_FLAG_ABL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_kvaser_usb_hydra_one_shot_fail
	ldr	x22, [x20, #24]
	ldr	x8, [x19]
	udiv	x9, x21, x8
	msub	x21, x9, x8, x21
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x22, [x20, #24]
	ldr	x8, [x19]
	udiv	x9, x21, x8
	msub	x21, x9, x8, x21
	ldr	x23, [x20, #8]
	ldr	w8, [x23, #4]
	add	w8, w8, #1
	str	w8, [x23, #4]
	add	x8, x22, x21, lsl #4
	ldr	w0, [x8, #8]
	bl	_can_dlc2len
	ldr	w8, [x23]
	add	w8, w8, w0
	str	w8, [x23]
LBB0_7:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x0, [x20, #8]
	lsl	x21, x21, #4
	ldr	x1, [x22, x21]
	bl	_can_get_echo_skb
	ldr	x8, [x19]
	str	x8, [x22, x21]
	ldr	w8, [x20, #16]
	sub	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x0, [x20, #8]
	bl	_netif_wake_queue
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_EXTENDED,8,3               ; @CMD_EXTENDED
	.comm	_KVASER_USB_HYDRA_CF_FLAG_OSM_NACK,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_OSM_NACK
	.comm	_KVASER_USB_HYDRA_CF_FLAG_ABL,4,2 ; @KVASER_USB_HYDRA_CF_FLAG_ABL
	.no_dead_strip	_kvaser_usb_hydra_tx_acknowledge
.subsections_via_symbols
