	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_msg_check_status        ## -- Begin function i2400m_msg_check_status
	.p2align	4, 0x90
_i2400m_msg_check_status:               ## @i2400m_msg_check_status
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rdi), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_ms_to_errno@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_3
## %bb.4:
	movq	(%r12), %rax
	movl	%ebx, %edx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rcx
	movl	8(%rax,%rdx), %r12d
	testq	%r15, %r15
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_3:
	movq	_EBADR@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str(%rip), %rcx
	testq	%r15, %r15
	je	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %r8d
	callq	_snprintf
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ms_to_errno,8,3                ## @ms_to_errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown status code"

	.comm	_EBADR,4,2                      ## @EBADR
L_.str.1:                               ## @.str.1
	.asciz	"%s (%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_msg_check_status        ; -- Begin function i2400m_msg_check_status
	.p2align	2
_i2400m_msg_check_status:               ; @i2400m_msg_check_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w0, [x0]
	bl	_le16_to_cpu
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _ms_to_errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ms_to_errno@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_4
; %bb.2:
	ldr	x8, [x22]
	add	x8, x8, w21, uxtw #4
	ldr	x3, [x8]
	ldr	w22, [x8, #8]
	cbnz	x20, LBB0_5
	b	LBB0_6
LBB0_3:
	mov	w22, #0
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EBADR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBADR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	cbz	x20, LBB0_6
LBB0_5:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_snprintf
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ms_to_errno,8,3                ; @ms_to_errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown status code"

	.comm	_EBADR,4,2                      ; @EBADR
l_.str.1:                               ; @.str.1
	.asciz	"%s (%d)"

.subsections_via_symbols
