	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_SET_ICM_SIZE             ## -- Begin function mthca_SET_ICM_SIZE
	.p2align	4, 0x90
_mthca_SET_ICM_SIZE:                    ## @mthca_SET_ICM_SIZE
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	_CMD_SET_ICM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mthca_cmd_imm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MTHCA_ICM_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %esi
	callq	_ALIGN
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MTHCA_ICM_PAGE_SHIFT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movl	%eax, (%r14)
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_SET_ICM_SIZE,4,2           ## @CMD_SET_ICM_SIZE
	.comm	_CMD_TIME_CLASS_A,4,2           ## @CMD_TIME_CLASS_A
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MTHCA_ICM_PAGE_SIZE,4,2        ## @MTHCA_ICM_PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_MTHCA_ICM_PAGE_SHIFT,4,2       ## @MTHCA_ICM_PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_SET_ICM_SIZE             ; -- Begin function mthca_SET_ICM_SIZE
	.p2align	2
_mthca_SET_ICM_SIZE:                    ; @mthca_SET_ICM_SIZE
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, _CMD_SET_ICM_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SET_ICM_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _CMD_TIME_CLASS_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_mthca_cmd_imm
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MTHCA_ICM_PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MTHCA_ICM_PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sdiv	w1, w8, w9
	bl	_ALIGN
Lloh12:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MTHCA_ICM_PAGE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MTHCA_ICM_PAGE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	sub	w8, w8, w9
	asr	w8, w0, w8
	str	w8, [x19]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_SET_ICM_SIZE,4,2           ; @CMD_SET_ICM_SIZE
	.comm	_CMD_TIME_CLASS_A,4,2           ; @CMD_TIME_CLASS_A
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MTHCA_ICM_PAGE_SIZE,4,2        ; @MTHCA_ICM_PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_MTHCA_ICM_PAGE_SHIFT,4,2       ; @MTHCA_ICM_PAGE_SHIFT
.subsections_via_symbols
