	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_spi_transfer
_sja1105_spi_transfer:                  ## @sja1105_spi_transfer
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	%rsi, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movq	_SJA1105_SIZE_SPI_TRANSFER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%ecx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_SIZE_SPI_TRANSFER_MAX,4,2 ## @SJA1105_SIZE_SPI_TRANSFER_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI message (%d) longer than max of %d\n"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
L_.str.1:                               ## @.str.1
	.asciz	"SPI transfer failed: %d\n"

	.no_dead_strip	_sja1105_spi_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_spi_transfer
_sja1105_spi_transfer:                  ; @sja1105_spi_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	stp	x1, x2, [sp, #24]
	str	w3, [sp, #40]
Lloh0:
	adrp	x8, _SJA1105_SIZE_SPI_TRANSFER_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1105_SIZE_SPI_TRANSFER_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ge	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x3
	bl	_dev_err
Lloh5:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_2:
	add	x0, sp, #16
	bl	_spi_message_init
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_spi_message_add_tail
	add	x1, sp, #16
	mov	x0, x19
	bl	_spi_sync
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_SIZE_SPI_TRANSFER_MAX,4,2 ; @SJA1105_SIZE_SPI_TRANSFER_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI message (%d) longer than max of %d\n"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
l_.str.1:                               ; @.str.1
	.asciz	"SPI transfer failed: %d\n"

	.no_dead_strip	_sja1105_spi_transfer
.subsections_via_symbols
