	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_rx_msg_hdr_check
_i2400m_rx_msg_hdr_check:               ## @i2400m_rx_msg_hdr_check
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	callq	_i2400m_dev
	movq	%rax, %r14
	cmpq	$15, %r15
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$16, %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movq	(%rbx), %r13
	movq	_I2400M_D2H_MSG_BARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	cmpq	%rax, %r13
	jne	LBB0_3
## %bb.4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_le16_to_cpu
	movq	%rax, %rcx
	movq	_I2400M_MAX_PLS_IN_MSG@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jle	LBB0_10
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	(%rbx), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movl	%r12d, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX: HW BUG? message with short header (%zu vs %zu bytes expected)\n"

	.comm	_I2400M_D2H_MSG_BARKER,4,2      ## @I2400M_D2H_MSG_BARKER
L_.str.1:                               ## @.str.1
	.asciz	"RX: HW BUG? message received with unknown barker 0x%08x (buf_size %zu bytes)\n"

L_.str.2:                               ## @.str.2
	.asciz	"RX: HW BUG? zero payload packets in message\n"

	.comm	_I2400M_MAX_PLS_IN_MSG,8,3      ## @I2400M_MAX_PLS_IN_MSG
L_.str.3:                               ## @.str.3
	.asciz	"RX: HW BUG? message contains more payload than maximum; ignoring.\n"

	.no_dead_strip	_i2400m_rx_msg_hdr_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_rx_msg_hdr_check
_i2400m_rx_msg_hdr_check:               ; @i2400m_rx_msg_hdr_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_i2400m_dev
	mov	x20, x0
	cmp	x21, #15
	b.hi	LBB0_2
; %bb.1:
	mov	w8, #16
	stp	x21, x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x23, [x22]
Lloh5:
	adrp	x8, _I2400M_D2H_MSG_BARKER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2400M_D2H_MSG_BARKER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	cmp	x23, x0
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_le16_to_cpu
Lloh8:
	adrp	x8, _I2400M_MAX_PLS_IN_MSG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2400M_MAX_PLS_IN_MSG@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_10
; %bb.5:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x0, [x22]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x21, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	mov	w19, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX: HW BUG? message with short header (%zu vs %zu bytes expected)\n"

	.comm	_I2400M_D2H_MSG_BARKER,4,2      ; @I2400M_D2H_MSG_BARKER
l_.str.1:                               ; @.str.1
	.asciz	"RX: HW BUG? message received with unknown barker 0x%08x (buf_size %zu bytes)\n"

l_.str.2:                               ; @.str.2
	.asciz	"RX: HW BUG? zero payload packets in message\n"

	.comm	_I2400M_MAX_PLS_IN_MSG,8,3      ; @I2400M_MAX_PLS_IN_MSG
l_.str.3:                               ; @.str.3
	.asciz	"RX: HW BUG? message contains more payload than maximum; ignoring.\n"

	.no_dead_strip	_i2400m_rx_msg_hdr_check
.subsections_via_symbols
