	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_rx_fifo_get_next_frame
_xcan_rx_fifo_get_next_frame:           ## @xcan_rx_fifo_get_next_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_XCAN_FLAG_RX_FIFO_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	_XCAN_ICR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XCAN_IXR_RXOK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_XCAN_FSR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_XCAN_FLAG_CANFD_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	jne	LBB0_2
## %bb.3:
	movq	_XCAN_FSR_FL_MASK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	movq	_XCAN_ISR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_XCAN_IXR_RXNEMP_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.9:
	movq	_XCAN_RXFIFO_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	_XCAN_2_FSR_FL_MASK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.11:
	movq	_XCAN_2_FSR_RI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_XCAN_RXMSG_2_FRAME_OFFSET      ## TAILCALL
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_XCAN_FSR_RI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_XCAN_RXMSG_FRAME_OFFSET        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_FLAG_RX_FIFO_MULTI,4,2    ## @XCAN_FLAG_RX_FIFO_MULTI
	.comm	_XCAN_ICR_OFFSET,4,2            ## @XCAN_ICR_OFFSET
	.comm	_XCAN_IXR_RXOK_MASK,4,2         ## @XCAN_IXR_RXOK_MASK
	.comm	_XCAN_FSR_OFFSET,4,2            ## @XCAN_FSR_OFFSET
	.comm	_XCAN_FLAG_CANFD_2,4,2          ## @XCAN_FLAG_CANFD_2
	.comm	_XCAN_2_FSR_FL_MASK,4,2         ## @XCAN_2_FSR_FL_MASK
	.comm	_XCAN_FSR_FL_MASK,4,2           ## @XCAN_FSR_FL_MASK
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_XCAN_2_FSR_RI_MASK,4,2         ## @XCAN_2_FSR_RI_MASK
	.comm	_XCAN_FSR_RI_MASK,4,2           ## @XCAN_FSR_RI_MASK
	.comm	_XCAN_ISR_OFFSET,4,2            ## @XCAN_ISR_OFFSET
	.comm	_XCAN_IXR_RXNEMP_MASK,4,2       ## @XCAN_IXR_RXNEMP_MASK
	.comm	_XCAN_RXFIFO_OFFSET,4,2         ## @XCAN_RXFIFO_OFFSET
	.no_dead_strip	_xcan_rx_fifo_get_next_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_rx_fifo_get_next_frame
_xcan_rx_fifo_get_next_frame:           ; @xcan_rx_fifo_get_next_frame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _XCAN_FLAG_RX_FIFO_MULTI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCAN_FLAG_RX_FIFO_MULTI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _XCAN_ICR_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XCAN_ICR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _XCAN_IXR_RXOK_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XCAN_IXR_RXOK_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _XCAN_FSR_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XCAN_FSR_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19, #8]
Lloh12:
	adrp	x9, _XCAN_FLAG_CANFD_2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XCAN_FLAG_CANFD_2@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _XCAN_FSR_FL_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _XCAN_FSR_FL_MASK@GOTPAGEOFF]
	ands	w8, w9, w8
Lloh17:
	adrp	x9, _XCAN_2_FSR_FL_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XCAN_2_FSR_FL_MASK@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_6
; %bb.2:
	cbz	w8, LBB0_8
; %bb.3:
Lloh19:
	adrp	x8, _XCAN_2_FSR_RI_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XCAN_2_FSR_RI_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_XCAN_RXMSG_2_FRAME_OFFSET
LBB0_4:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _XCAN_ISR_OFFSET@GOTPAGE
Lloh23:
	ldr	x9, [x9, _XCAN_ISR_OFFSET@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
Lloh25:
	adrp	x8, _XCAN_IXR_RXNEMP_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XCAN_IXR_RXNEMP_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh28:
	adrp	x8, _XCAN_RXFIFO_OFFSET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _XCAN_RXFIFO_OFFSET@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
Lloh31:
	adrp	x8, _ENOENT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh34:
	adrp	x8, _XCAN_FSR_RI_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XCAN_FSR_RI_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	and	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_XCAN_RXMSG_FRAME_OFFSET
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_FLAG_RX_FIFO_MULTI,4,2    ; @XCAN_FLAG_RX_FIFO_MULTI
	.comm	_XCAN_ICR_OFFSET,4,2            ; @XCAN_ICR_OFFSET
	.comm	_XCAN_IXR_RXOK_MASK,4,2         ; @XCAN_IXR_RXOK_MASK
	.comm	_XCAN_FSR_OFFSET,4,2            ; @XCAN_FSR_OFFSET
	.comm	_XCAN_FLAG_CANFD_2,4,2          ; @XCAN_FLAG_CANFD_2
	.comm	_XCAN_2_FSR_FL_MASK,4,2         ; @XCAN_2_FSR_FL_MASK
	.comm	_XCAN_FSR_FL_MASK,4,2           ; @XCAN_FSR_FL_MASK
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_XCAN_2_FSR_RI_MASK,4,2         ; @XCAN_2_FSR_RI_MASK
	.comm	_XCAN_FSR_RI_MASK,4,2           ; @XCAN_FSR_RI_MASK
	.comm	_XCAN_ISR_OFFSET,4,2            ; @XCAN_ISR_OFFSET
	.comm	_XCAN_IXR_RXNEMP_MASK,4,2       ; @XCAN_IXR_RXNEMP_MASK
	.comm	_XCAN_RXFIFO_OFFSET,4,2         ; @XCAN_RXFIFO_OFFSET
	.no_dead_strip	_xcan_rx_fifo_get_next_frame
.subsections_via_symbols
