	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp251x_hw_tx_frame
_mcp251x_hw_tx_frame:                   ## @mcp251x_hw_tx_frame
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spi_get_drvdata
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mcp251x_is_2510
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_TXBDAT_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	addl	%r12d, %eax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.2:
	movl	%r15d, %ebx
	movq	%r14, %r15
	movl	%r12d, %eax
	movl	$1, %r12d
	movslq	%eax, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%rcx, %r14
	callq	_TXBCTRL
	leaq	(%rax,%r12), %rsi
	movl	(%r15,%r12,4), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mcp251x_write_reg
	movq	%r14, %rcx
	incq	%r12
	movslq	(%r14), %rax
	addq	%r13, %rax
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r13), %edi
	movq	_TXBDAT_OFF@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	addl	%r12d, %edx
	movq	%r14, %rsi
	callq	_memcpy
	addl	(%r15), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mcp251x_spi_trans              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXBDAT_OFF,4,2                 ## @TXBDAT_OFF
	.no_dead_strip	_mcp251x_hw_tx_frame
.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_frame
_mcp251x_hw_tx_frame:                   ; @mcp251x_hw_tx_frame
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_spi_get_drvdata
	mov	x23, x0
	mov	x0, x20
	bl	_mcp251x_is_2510
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x23, _TXBDAT_OFF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TXBDAT_OFF@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, w19
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_TXBCTRL
	add	x1, x0, x24
	ldr	w2, [x21, x24, lsl #2]
	mov	x0, x20
	bl	_mcp251x_write_reg
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x8, x8, w19, sxtw
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
	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_5:
	ldr	w0, [x23]
Lloh2:
	adrp	x22, _TXBDAT_OFF@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TXBDAT_OFF@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w2, w8, w19
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x22]
	add	w1, w8, w19
	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	_mcp251x_spi_trans
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TXBDAT_OFF,4,2                 ; @TXBDAT_OFF
	.no_dead_strip	_mcp251x_hw_tx_frame
.subsections_via_symbols
