	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxcpld_i2c_check_msg_params
_mlxcpld_i2c_check_msg_params:          ## @mlxcpld_i2c_check_msg_params
	.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	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, %r15
	xorl	%edi, %edi
	cmpl	$127, (%rsi)
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	movl	(%r14), %edi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_3:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.4:
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$0, 4(%r15,%rbx,8)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %eax
	xorl	%edi, %edi
	cmpl	(%r15,%rbx,8), %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
LBB0_13:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	xorl	%r14d, %r14d
	movl	%ebx, %edx
LBB0_8:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect 0 num of messages\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid address 0x%03x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid buf in msg[%d]\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid addr in msg[%d]\n"

	.no_dead_strip	_mlxcpld_i2c_check_msg_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxcpld_i2c_check_msg_params
_mlxcpld_i2c_check_msg_params:          ; @mlxcpld_i2c_check_msg_params
	.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, x0
	cbz	w2, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #127
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x22, #0
	mov	w21, w21
	add	x23, x20, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20]
	ldur	w9, [x23, #-4]
	cmp	w8, w9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	add	x23, x23, #8
	cmp	x21, x22
	b.ne	LBB0_8
LBB0_11:
	mov	w0, #0
	b	LBB0_5
LBB0_12:
	ldr	w0, [x19]
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_13:
	ldr	w0, [x19]
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect 0 num of messages\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid address 0x%03x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid buf in msg[%d]\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid addr in msg[%d]\n"

	.no_dead_strip	_mlxcpld_i2c_check_msg_params
.subsections_via_symbols
