	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_fw_pkey_sz
_to_fw_pkey_sz:                         ## @to_fw_pkey_sz
	.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
	movl	%esi, %edx
	xorl	%ebx, %ebx
	cmpl	$1023, %esi                     ## imm = 0x3FF
	jg	LBB0_5
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_13
## %bb.2:
	cmpl	$256, %edx                      ## imm = 0x100
	je	LBB0_9
## %bb.3:
	cmpl	$512, %edx                      ## imm = 0x200
	jne	LBB0_12
## %bb.4:
	movl	$2, %ebx
	jmp	LBB0_13
LBB0_5:
	cmpl	$1024, %edx                     ## imm = 0x400
	je	LBB0_10
## %bb.6:
	cmpl	$2048, %edx                     ## imm = 0x800
	je	LBB0_11
## %bb.7:
	cmpl	$4096, %edx                     ## imm = 0x1000
	jne	LBB0_12
## %bb.8:
	movl	$5, %ebx
	jmp	LBB0_13
LBB0_9:
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_10:
	movl	$3, %ebx
	jmp	LBB0_13
LBB0_11:
	movl	$4, %ebx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str(%rip), %rsi
	callq	_mlx5_core_warn
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pkey table size %d\n"

	.no_dead_strip	_to_fw_pkey_sz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_fw_pkey_sz
_to_fw_pkey_sz:                         ; @to_fw_pkey_sz
	.cfi_startproc
; %bb.0:
	mov	x2, x1
	cmp	w1, #1023
	b.gt	LBB0_5
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_9
; %bb.2:
	cmp	w2, #256
	b.eq	LBB0_10
; %bb.3:
	cmp	w2, #512
	b.ne	LBB0_13
; %bb.4:
	mov	w0, #2
	ret
LBB0_5:
	cmp	w2, #1024
	b.eq	LBB0_11
; %bb.6:
	cmp	w2, #2048
	b.eq	LBB0_12
; %bb.7:
	cmp	w2, #1, lsl #12                 ; =4096
	b.ne	LBB0_13
; %bb.8:
	mov	w0, #5
	ret
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
	mov	w0, #1
	ret
LBB0_11:
	mov	w0, #3
	ret
LBB0_12:
	mov	w0, #4
	ret
LBB0_13:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_core_warn
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pkey table size %d\n"

	.no_dead_strip	_to_fw_pkey_sz
.subsections_via_symbols
