	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_msg_size_check          ## -- Begin function i2400m_msg_size_check
	.p2align	4, 0x90
_i2400m_msg_size_check:                 ## @i2400m_msg_size_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_i2400m_dev
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdx
	movl	$4, %edi
	movq	%rax, %rsi
	movq	%r15, %rcx
	movq	%rbx, %r8
	movq	%r13, %r9
	callq	_d_fnstart
	cmpq	$7, %r13
	ja	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$8, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %r8
	jmp	LBB0_4
LBB0_2:
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movslq	%eax, %r14
	addq	$8, %r14
	movq	%rbx, %r8
	xorl	%ebx, %ebx
	cmpq	%r13, %r14
	jbe	LBB0_5
## %bb.3:
	movl	(%r8), %edi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_le16_to_cpu
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_dev_err
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, (%rsp)
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %edi
	movq	%r12, %rsi
	movq	%r15, %rcx
	movq	%r13, %r9
	callq	_d_fnend
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(i2400m %p l3l4_hdr %p msg_size %zu)\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad size for message header (expected at least %zu, got %zu)\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"bad size for message code 0x%04x (expected %zu, got %zu)\n"

L_.str.3:                               ## @.str.3
	.asciz	"(i2400m %p l3l4_hdr %p msg_size %zu) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_msg_size_check          ; -- Begin function i2400m_msg_size_check
	.p2align	2
_i2400m_msg_size_check:                 ; @i2400m_msg_size_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_i2400m_dev
	mov	x22, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #4
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_d_fnstart
	cmp	x19, #7
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #8
	mov	x3, x19
	b	LBB0_4
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x23, x8, #8
	cmp	x23, x19
	b.ls	LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x2, x0
	str	x19, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x3, x23
LBB0_4:
	bl	_dev_err
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #4
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x23
	bl	_d_fnend
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(i2400m %p l3l4_hdr %p msg_size %zu)\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad size for message header (expected at least %zu, got %zu)\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"bad size for message code 0x%04x (expected %zu, got %zu)\n"

l_.str.3:                               ; @.str.3
	.asciz	"(i2400m %p l3l4_hdr %p msg_size %zu) = %d\n"

.subsections_via_symbols
