	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp251x_hw_tx
_mcp251x_hw_tx:                         ## @mcp251x_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spi_get_drvdata
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_SPI_TRANSFER_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	andl	%eax, %r14d
	movl	%r14d, %ebx
	sarl	$18, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	movq	_CAN_EFF_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	andl	%eax, %r14d
LBB0_3:
	xorl	%r15d, %r15d
	testl	%eax, %ecx
	setne	%r15b
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	andl	(%rcx), %eax
	setne	%r12b
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_INSTRUCTION_LOAD_TXB
	movq	_TXBCTRL_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	_SIDH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	sarl	%cl, %eax
	movq	_SIDL_SID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_SIDL_SID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_TXBSIDH_OFF@GOTPCREL(%rip), %rdx
	shll	%cl, %ebx
	movq	(%rdx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	_SIDL_EXIDE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_SIDL_EID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	sarl	%cl, %eax
	movq	_SIDL_EID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%r15d, %eax
	orl	%ebx, %eax
	movq	_TXBSIDL_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	$1, %r15d
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_GET_BYTE
	movq	_TXBEID8_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_GET_BYTE
	movq	_TXBEID0_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	_DLC_RTR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edx
	orl	%edx, %r12d
	movq	_TXBDLC_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, (%r13,%rax,4)
	movq	_TXBDAT_OFF@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	8(%rbx), %esi
	callq	_memcpy
	movl	4(%rbx), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_mcp251x_hw_tx_frame
	movl	%ebx, %ecx
	shll	%cl, %r15d
	movl	%r15d, %edi
	callq	_INSTRUCTION_RTS
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movl	%eax, (%rcx)
	movl	(%rdx), %edi
	movl	$1, %esi
	callq	_mcp251x_spi_trans
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_TRANSFER_BUF_LEN,4,2       ## @SPI_TRANSFER_BUF_LEN
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ## @CAN_EFF_MASK
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_TXBCTRL_OFF,8,3                ## @TXBCTRL_OFF
	.comm	_SIDH_SHIFT,4,2                 ## @SIDH_SHIFT
	.comm	_TXBSIDH_OFF,8,3                ## @TXBSIDH_OFF
	.comm	_SIDL_SID_MASK,4,2              ## @SIDL_SID_MASK
	.comm	_SIDL_SID_SHIFT,4,2             ## @SIDL_SID_SHIFT
	.comm	_SIDL_EXIDE_SHIFT,4,2           ## @SIDL_EXIDE_SHIFT
	.comm	_SIDL_EID_SHIFT,4,2             ## @SIDL_EID_SHIFT
	.comm	_SIDL_EID_MASK,4,2              ## @SIDL_EID_MASK
	.comm	_TXBSIDL_OFF,8,3                ## @TXBSIDL_OFF
	.comm	_TXBEID8_OFF,8,3                ## @TXBEID8_OFF
	.comm	_TXBEID0_OFF,8,3                ## @TXBEID0_OFF
	.comm	_DLC_RTR_SHIFT,4,2              ## @DLC_RTR_SHIFT
	.comm	_TXBDLC_OFF,8,3                 ## @TXBDLC_OFF
	.comm	_TXBDAT_OFF,4,2                 ## @TXBDAT_OFF
	.no_dead_strip	_mcp251x_hw_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp251x_hw_tx
_mcp251x_hw_tx:                         ; @mcp251x_hw_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_spi_get_drvdata
	mov	x20, x0
Lloh3:
	adrp	x8, _SPI_TRANSFER_BUF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_TRANSFER_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	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ands	w9, w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x10, _CAN_EFF_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w24, w10, w8
	asr	w26, w24, #18
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x10, _CAN_SFF_MASK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	and	w26, w10, w8
Lloh17:
	adrp	x10, _CAN_EFF_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CAN_EFF_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	and	w24, w10, w8
LBB0_3:
	cmp	w9, #0
	cset	w27, ne
Lloh20:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w25, ne
	mov	x0, x19
	bl	_INSTRUCTION_LOAD_TXB
Lloh23:
	adrp	x8, _TXBCTRL_OFF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TXBCTRL_OFF@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	w0, [x23, x8, lsl #2]
Lloh26:
	adrp	x8, _SIDH_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SIDH_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	asr	w8, w26, w8
Lloh29:
	adrp	x9, _TXBSIDH_OFF@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TXBSIDH_OFF@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	str	w8, [x23, x9, lsl #2]
Lloh32:
	adrp	x8, _SIDL_SID_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIDL_SID_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh35:
	adrp	x9, _SIDL_SID_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SIDL_SID_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _SIDL_EXIDE_SHIFT@GOTPAGE
Lloh39:
	ldr	x10, [x10, _SIDL_EXIDE_SHIFT@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh40:
	ldr	w9, [x10]
	lsl	w9, w27, w9
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _SIDL_EID_SHIFT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SIDL_EID_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	asr	w9, w24, w9
Lloh44:
	adrp	x10, _SIDL_EID_MASK@GOTPAGE
Lloh45:
	ldr	x10, [x10, _SIDL_EID_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w8, w9
Lloh47:
	adrp	x9, _TXBSIDL_OFF@GOTPAGE
Lloh48:
	ldr	x9, [x9, _TXBSIDL_OFF@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	str	w8, [x23, x9, lsl #2]
	mov	w26, #1
	mov	x0, x24
	mov	w1, #1
	bl	_GET_BYTE
Lloh50:
	adrp	x8, _TXBEID8_OFF@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TXBEID8_OFF@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	w0, [x23, x8, lsl #2]
	mov	x0, x24
	mov	w1, #0
	bl	_GET_BYTE
Lloh53:
	adrp	x8, _TXBEID0_OFF@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TXBEID0_OFF@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	w0, [x23, x8, lsl #2]
Lloh56:
	adrp	x8, _DLC_RTR_SHIFT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DLC_RTR_SHIFT@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	lsl	w8, w25, w8
	ldp	w2, w1, [x22, #4]
	orr	w8, w8, w2
Lloh59:
	adrp	x9, _TXBDLC_OFF@GOTPAGE
Lloh60:
	ldr	x9, [x9, _TXBDLC_OFF@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	str	w8, [x23, x9, lsl #2]
Lloh62:
	adrp	x8, _TXBDAT_OFF@GOTPAGE
Lloh63:
	ldr	x8, [x8, _TXBDAT_OFF@GOTPAGEOFF]
Lloh64:
	ldrsw	x8, [x8]
	add	x0, x23, x8, lsl #2
	bl	_memcpy
	ldr	w2, [x22, #4]
	mov	x0, x21
	mov	x1, x23
	mov	x3, x19
	bl	_mcp251x_hw_tx_frame
	lsl	w0, w26, w19
	bl	_INSTRUCTION_RTS
	ldr	x8, [x20, #8]
	str	w0, [x8]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_mcp251x_spi_trans
	ldur	x8, [x29, #-88]
Lloh65:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh66:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_TRANSFER_BUF_LEN,4,2       ; @SPI_TRANSFER_BUF_LEN
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_EFF_MASK,4,2               ; @CAN_EFF_MASK
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_TXBCTRL_OFF,8,3                ; @TXBCTRL_OFF
	.comm	_SIDH_SHIFT,4,2                 ; @SIDH_SHIFT
	.comm	_TXBSIDH_OFF,8,3                ; @TXBSIDH_OFF
	.comm	_SIDL_SID_MASK,4,2              ; @SIDL_SID_MASK
	.comm	_SIDL_SID_SHIFT,4,2             ; @SIDL_SID_SHIFT
	.comm	_SIDL_EXIDE_SHIFT,4,2           ; @SIDL_EXIDE_SHIFT
	.comm	_SIDL_EID_SHIFT,4,2             ; @SIDL_EID_SHIFT
	.comm	_SIDL_EID_MASK,4,2              ; @SIDL_EID_MASK
	.comm	_TXBSIDL_OFF,8,3                ; @TXBSIDL_OFF
	.comm	_TXBEID8_OFF,8,3                ; @TXBEID8_OFF
	.comm	_TXBEID0_OFF,8,3                ; @TXBEID0_OFF
	.comm	_DLC_RTR_SHIFT,4,2              ; @DLC_RTR_SHIFT
	.comm	_TXBDLC_OFF,8,3                 ; @TXBDLC_OFF
	.comm	_TXBDAT_OFF,4,2                 ; @TXBDAT_OFF
	.no_dead_strip	_mcp251x_hw_tx
.subsections_via_symbols
