	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_op_for_set_hem
_get_op_for_set_hem:                    ## @get_op_for_set_hem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movl	%esi, %edx
	cmpl	$129, %esi
	jne	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
LBB0_3:
	leal	-128(%rdx), %ecx
	cmpl	$7, %ecx
	jae	LBB0_4
## %bb.5:
	movslq	%ecx, %rcx
	leaq	l_switch.table.get_op_for_set_hem(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	addl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_warn
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HNS_ROCE_CMD_WRITE_QPC_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_QPC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_MPT_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_MPT_BT0
	.comm	_HNS_ROCE_CMD_WRITE_CQC_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_CQC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_SRQC_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_SRQC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_SCCC_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_SCCC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_QPC_TIMER_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_QPC_TIMER_BT0
	.comm	_HNS_ROCE_CMD_WRITE_CQC_TIMER_BT0,4,2 ## @HNS_ROCE_CMD_WRITE_CQC_TIMER_BT0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Table %d not to be written by mailbox!\n"

	.no_dead_strip	_get_op_for_set_hem
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.get_op_for_set_hem
l_switch.table.get_op_for_set_hem:
	.quad	_HNS_ROCE_CMD_WRITE_SRQC_BT0
	.quad	_HNS_ROCE_CMD_WRITE_SCCC_BT0
	.quad	_HNS_ROCE_CMD_WRITE_QPC_TIMER_BT0
	.quad	_HNS_ROCE_CMD_WRITE_QPC_BT0
	.quad	_HNS_ROCE_CMD_WRITE_MPT_BT0
	.quad	_HNS_ROCE_CMD_WRITE_CQC_TIMER_BT0
	.quad	_HNS_ROCE_CMD_WRITE_CQC_BT0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_op_for_set_hem
_get_op_for_set_hem:                    ; @get_op_for_set_hem
	.cfi_startproc
; %bb.0:
	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
	mov	x8, x1
	cmp	w1, #129
	b.ne	LBB0_2
; %bb.1:
	cbnz	w2, LBB0_5
LBB0_2:
	sub	w9, w8, #128
	cmp	w9, #7
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, l_switch.table.get_op_for_set_hem@PAGE
Lloh1:
	add	x8, x8, l_switch.table.get_op_for_set_hem@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w8, [x8]
	add	w0, w8, w2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x0]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_warn
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HNS_ROCE_CMD_WRITE_QPC_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_QPC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_MPT_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_MPT_BT0
	.comm	_HNS_ROCE_CMD_WRITE_CQC_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_CQC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_SRQC_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_SRQC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_SCCC_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_SCCC_BT0
	.comm	_HNS_ROCE_CMD_WRITE_QPC_TIMER_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_QPC_TIMER_BT0
	.comm	_HNS_ROCE_CMD_WRITE_CQC_TIMER_BT0,4,2 ; @HNS_ROCE_CMD_WRITE_CQC_TIMER_BT0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Table %d not to be written by mailbox!\n"

	.no_dead_strip	_get_op_for_set_hem
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.get_op_for_set_hem
l_switch.table.get_op_for_set_hem:
	.quad	_HNS_ROCE_CMD_WRITE_SRQC_BT0
	.quad	_HNS_ROCE_CMD_WRITE_SCCC_BT0
	.quad	_HNS_ROCE_CMD_WRITE_QPC_TIMER_BT0
	.quad	_HNS_ROCE_CMD_WRITE_QPC_BT0
	.quad	_HNS_ROCE_CMD_WRITE_MPT_BT0
	.quad	_HNS_ROCE_CMD_WRITE_CQC_TIMER_BT0
	.quad	_HNS_ROCE_CMD_WRITE_CQC_BT0

.subsections_via_symbols
