	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54spi_rx
_p54spi_rx:                             ## @p54spi_rx
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_p54spi_wakeup
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	_SPI_ADRS_DMA_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-64(%rbp), %rdx
	movl	$16, %ecx
	movq	%r15, %rdi
	callq	_p54spi_spi_read
	movq	-64(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	leaq	4(%rbx), %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	leaq	-56(%rbp), %rsi
	cmpq	$8, %rbx
	ja	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_skb_put_data
	jmp	LBB0_10
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_p54spi_sleep
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movq	%r15, %rdi
	callq	_p54spi_sleep
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	movl	$8, %edx
	movq	%r14, %rdi
	callq	_skb_put_data
	movl	(%r12), %r12d
	addq	$-8, %rbx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_p54spi_spi_read
LBB0_10:
	movq	%r15, %rdi
	callq	_p54spi_sleep
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_skb_put
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_p54_rx
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SPI_ADRS_DMA_DATA,4,2          ## @SPI_ADRS_DMA_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx request of zero bytes\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not alloc skb"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_READAHEAD_SZ,8,3               ## @READAHEAD_SZ
	.no_dead_strip	_p54spi_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54spi_rx
_p54spi_rx:                             ; @p54spi_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_p54spi_wakeup
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh3:
	adrp	x23, _SPI_ADRS_DMA_DATA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SPI_ADRS_DMA_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #16
	bl	_p54spi_spi_read
	ldr	x21, [sp, #8]
	cbz	x21, LBB0_6
; %bb.2:
	add	x0, x21, #4
	bl	_dev_alloc_skb
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	add	x8, sp, #8
	add	x1, x8, #8
	subs	x22, x21, #8
	b.hi	LBB0_9
; %bb.4:
	mov	x2, x21
	bl	_skb_put_data
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_p54spi_sleep
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_7:
	mov	x0, x19
	bl	_p54spi_sleep
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_9:
	mov	w2, #8
	bl	_skb_put_data
	ldr	w21, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_skb_put
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_p54spi_spi_read
LBB0_10:
	mov	x0, x19
	bl	_p54spi_sleep
	mov	x0, x20
	mov	w1, #4
	bl	_skb_put
	ldr	w0, [x19]
	mov	x1, x20
	bl	_p54_rx
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_dev_kfree_skb
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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
	add	sp, sp, #96
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SPI_ADRS_DMA_DATA,4,2          ; @SPI_ADRS_DMA_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx request of zero bytes\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not alloc skb"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_READAHEAD_SZ,8,3               ; @READAHEAD_SZ
	.no_dead_strip	_p54spi_rx
.subsections_via_symbols
