	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_MAP_ICM_page             ## -- Begin function mthca_MAP_ICM_page
	.p2align	4, 0x90
_mthca_MAP_ICM_page:                    ## @mthca_MAP_ICM_page
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mthca_alloc_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	8(%rbx), %r13
	movq	%r14, %rdi
	callq	_cpu_to_be64
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_cpu_to_be64
	movl	%eax, 4(%r13)
	movl	(%rbx), %esi
	movq	_CMD_MAP_ICM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CMD_TIME_CLASS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mthca_cmd
	movl	%eax, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mthca_free_mailbox
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_mthca_dbg
	xorl	%r13d, %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CMD_MAP_ICM,4,2                ## @CMD_MAP_ICM
	.comm	_CMD_TIME_CLASS_B,4,2           ## @CMD_TIME_CLASS_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mapped page at %llx to %llx for ICM.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_MAP_ICM_page             ; -- Begin function mthca_MAP_ICM_page
	.p2align	2
_mthca_MAP_ICM_page:                    ; @mthca_MAP_ICM_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mthca_alloc_mailbox
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	x23, [x22, #8]
	mov	x0, x19
	bl	_cpu_to_be64
	str	w0, [x23]
	mov	x0, x20
	bl	_cpu_to_be64
	str	w0, [x23, #4]
	ldr	w1, [x22]
Lloh3:
	adrp	x8, _CMD_MAP_ICM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_MAP_ICM@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _CMD_TIME_CLASS_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_TIME_CLASS_B@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x0, x21
	mov	w2, #1
	mov	w3, #0
	bl	_mthca_cmd
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_mthca_free_mailbox
	cbnz	w23, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_mthca_dbg
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CMD_MAP_ICM,4,2                ; @CMD_MAP_ICM
	.comm	_CMD_TIME_CLASS_B,4,2           ; @CMD_TIME_CLASS_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mapped page at %llx to %llx for ICM.\n"

.subsections_via_symbols
