	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi3110_hw_tx
_hi3110_hw_tx:                          ## @hi3110_hw_tx
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_HI3110_TX_EXT_BUF_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_HI3110_FIFO_TAG_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rbx,%rax,4)
	movl	(%r15), %ecx
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ecx, %edx
	movl	%edx, %esi
	sarl	$21, %esi
	movl	%edx, %edi
	shrl	$13, %edi
	andl	$224, %edi
	movq	_HI3110_EFF_FLAGS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HI3110_FIFO_ID_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, (%rbx,%rax,4)
	movl	%edx, %esi
	shrl	$15, %esi
	andl	$7, %esi
	orl	%edi, %esi
	movl	%esi, 4(%rbx,%rax,4)
	movl	%edx, %esi
	sarl	$7, %esi
	movl	%esi, 8(%rbx,%rax,4)
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	testl	%ecx, (%rsi)
	setne	%dil
	leal	(%rdi,%rdx,2), %edx
	addq	$3, %rax
	movq	_HI3110_FIFO_EXT_DATA_OFF@GOTPCREL(%rip), %rcx
	movq	_HI3110_FIFO_EXT_DLC_OFF@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%ecx, %esi
	movl	%esi, %edi
	sarl	$3, %edi
	shll	$5, %esi
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	movq	_HI3110_FIFO_ID_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, (%rbx,%rax,4)
	setne	%dl
	shll	$4, %edx
	orl	%esi, %edx
	incq	%rax
	movq	_HI3110_TX_STD_BUF_LEN@GOTPCREL(%rip), %r12
	movq	_HI3110_FIFO_STD_DATA_OFF@GOTPCREL(%rip), %rcx
	movq	_HI3110_FIFO_STD_DLC_OFF@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	%edx, (%rbx,%rax,4)
	movl	4(%r15), %edx
	movq	(%rsi), %rax
	movl	%edx, (%rbx,%rax,4)
	movslq	(%rcx), %rax
	leaq	(%rbx,%rax,4), %rdi
	movl	8(%r15), %esi
	callq	_memcpy
	movl	(%r12), %edx
	movq	_HI3110_CAN_MAX_DATA_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	addl	4(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hi3110_hw_tx_frame
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HI3110_TX_EXT_BUF_LEN,4,2      ## @HI3110_TX_EXT_BUF_LEN
	.comm	_HI3110_FIFO_TAG_OFF,8,3        ## @HI3110_FIFO_TAG_OFF
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_HI3110_FIFO_ID_OFF,8,3         ## @HI3110_FIFO_ID_OFF
	.comm	_HI3110_EFF_FLAGS,4,2           ## @HI3110_EFF_FLAGS
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_HI3110_FIFO_EXT_DLC_OFF,8,3    ## @HI3110_FIFO_EXT_DLC_OFF
	.comm	_HI3110_FIFO_EXT_DATA_OFF,4,2   ## @HI3110_FIFO_EXT_DATA_OFF
	.comm	_HI3110_CAN_MAX_DATA_LEN,4,2    ## @HI3110_CAN_MAX_DATA_LEN
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_HI3110_FIFO_STD_DLC_OFF,8,3    ## @HI3110_FIFO_STD_DLC_OFF
	.comm	_HI3110_FIFO_STD_DATA_OFF,4,2   ## @HI3110_FIFO_STD_DATA_OFF
	.comm	_HI3110_TX_STD_BUF_LEN,4,2      ## @HI3110_TX_STD_BUF_LEN
	.no_dead_strip	_hi3110_hw_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi3110_hw_tx
_hi3110_hw_tx:                          ; @hi3110_hw_tx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _HI3110_TX_EXT_BUF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HI3110_TX_EXT_BUF_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _HI3110_FIFO_TAG_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HI3110_FIFO_TAG_OFF@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	wzr, [x21, x8, lsl #2]
	ldr	w9, [x1]
Lloh11:
	adrp	x8, _CAN_EFF_FLAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _CAN_EFF_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w10, w8, w9
	asr	w8, w10, #21
Lloh17:
	adrp	x11, _HI3110_FIFO_ID_OFF@GOTPAGE
Lloh18:
	ldr	x11, [x11, _HI3110_FIFO_ID_OFF@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	lsr	w12, w10, #13
	and	w12, w12, #0xe0
Lloh20:
	adrp	x13, _HI3110_EFF_FLAGS@GOTPAGE
Lloh21:
	ldr	x13, [x13, _HI3110_EFF_FLAGS@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	orr	w12, w12, w13
	ubfx	w13, w10, #15, #3
	orr	w12, w12, w13
	add	x13, x21, x11, lsl #2
	stp	w8, w12, [x13]
	asr	w8, w10, #7
Lloh23:
	adrp	x12, _CAN_RTR_FLAG@GOTPAGE
Lloh24:
	ldr	x12, [x12, _CAN_RTR_FLAG@GOTPAGEOFF]
	str	w8, [x13, #8]
Lloh25:
	ldr	w8, [x12]
	tst	w8, w9
	cset	w8, ne
	bfi	w8, w10, #1, #31
	add	x10, x11, #3
Lloh26:
	adrp	x22, _HI3110_TX_EXT_BUF_LEN@GOTPAGE
Lloh27:
	ldr	x22, [x22, _HI3110_TX_EXT_BUF_LEN@GOTPAGEOFF]
Lloh28:
	adrp	x9, _HI3110_FIFO_EXT_DATA_OFF@GOTPAGE
Lloh29:
	ldr	x9, [x9, _HI3110_FIFO_EXT_DATA_OFF@GOTPAGEOFF]
Lloh30:
	adrp	x11, _HI3110_FIFO_EXT_DLC_OFF@GOTPAGE
Lloh31:
	ldr	x11, [x11, _HI3110_FIFO_EXT_DLC_OFF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh32:
	adrp	x8, _CAN_SFF_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh35:
	adrp	x10, _HI3110_FIFO_ID_OFF@GOTPAGE
Lloh36:
	ldr	x10, [x10, _HI3110_FIFO_ID_OFF@GOTPAGEOFF]
	asr	w11, w8, #3
Lloh37:
	ldr	x10, [x10]
	str	w11, [x21, x10, lsl #2]
Lloh38:
	adrp	x11, _CAN_RTR_FLAG@GOTPAGE
Lloh39:
	ldr	x11, [x11, _CAN_RTR_FLAG@GOTPAGEOFF]
	lsl	w8, w8, #5
Lloh40:
	ldr	w11, [x11]
	tst	w11, w9
	cset	w9, ne
	bfi	w8, w9, #4, #1
	add	x10, x10, #1
Lloh41:
	adrp	x22, _HI3110_TX_STD_BUF_LEN@GOTPAGE
Lloh42:
	ldr	x22, [x22, _HI3110_TX_STD_BUF_LEN@GOTPAGEOFF]
Lloh43:
	adrp	x9, _HI3110_FIFO_STD_DATA_OFF@GOTPAGE
Lloh44:
	ldr	x9, [x9, _HI3110_FIFO_STD_DATA_OFF@GOTPAGEOFF]
Lloh45:
	adrp	x11, _HI3110_FIFO_STD_DLC_OFF@GOTPAGE
Lloh46:
	ldr	x11, [x11, _HI3110_FIFO_STD_DLC_OFF@GOTPAGEOFF]
LBB0_3:
	str	w8, [x21, x10, lsl #2]
	ldr	x8, [x11]
	ldp	w2, w1, [x20, #4]
	str	w2, [x21, x8, lsl #2]
	ldrsw	x8, [x9]
	add	x0, x21, x8, lsl #2
	bl	_memcpy
	ldr	w8, [x22]
Lloh47:
	adrp	x9, _HI3110_CAN_MAX_DATA_LEN@GOTPAGE
Lloh48:
	ldr	x9, [x9, _HI3110_CAN_MAX_DATA_LEN@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	ldr	w10, [x20, #4]
	sub	w8, w8, w9
	add	w2, w8, w10
	mov	x0, x19
	mov	x1, x21
	bl	_hi3110_hw_tx_frame
	ldur	x8, [x29, #-40]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_HI3110_TX_EXT_BUF_LEN,4,2      ; @HI3110_TX_EXT_BUF_LEN
	.comm	_HI3110_FIFO_TAG_OFF,8,3        ; @HI3110_FIFO_TAG_OFF
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_HI3110_FIFO_ID_OFF,8,3         ; @HI3110_FIFO_ID_OFF
	.comm	_HI3110_EFF_FLAGS,4,2           ; @HI3110_EFF_FLAGS
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_HI3110_FIFO_EXT_DLC_OFF,8,3    ; @HI3110_FIFO_EXT_DLC_OFF
	.comm	_HI3110_FIFO_EXT_DATA_OFF,4,2   ; @HI3110_FIFO_EXT_DATA_OFF
	.comm	_HI3110_CAN_MAX_DATA_LEN,4,2    ; @HI3110_CAN_MAX_DATA_LEN
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_HI3110_FIFO_STD_DLC_OFF,8,3    ; @HI3110_FIFO_STD_DLC_OFF
	.comm	_HI3110_FIFO_STD_DATA_OFF,4,2   ; @HI3110_FIFO_STD_DATA_OFF
	.comm	_HI3110_TX_STD_BUF_LEN,4,2      ; @HI3110_TX_STD_BUF_LEN
	.no_dead_strip	_hi3110_hw_tx
.subsections_via_symbols
