	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_INIT_IB                  ## -- Begin function mthca_INIT_IB
	.p2align	4, 0x90
_mthca_INIT_IB:                         ## @mthca_INIT_IB
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mthca_alloc_mailbox
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%r12), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	xorl	%eax, %eax
	cmpq	$0, 48(%rbx)
	setne	%al
	shll	$16, %eax
	xorl	%ecx, %ecx
	cmpq	$0, 40(%rbx)
	setne	%cl
	shll	$17, %ecx
	orl	%eax, %ecx
	xorl	%eax, %eax
	cmpq	$0, 32(%rbx)
	setne	%al
	shll	$18, %eax
	orl	%ecx, %eax
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$4, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	movl	8(%rbx), %esi
	shll	$12, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_MTHCA_PUT
	movl	12(%rbx), %esi
	movq	%r13, %rdi
	movl	$6, %edx
	callq	_MTHCA_PUT
	movl	16(%rbx), %esi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_MTHCA_PUT
	movl	20(%rbx), %esi
	movq	%r13, %rdi
	movl	$16, %edx
	callq	_MTHCA_PUT
	movl	24(%rbx), %esi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_MTHCA_PUT
	movl	28(%rbx), %esi
	movq	%r13, %rdi
	movl	$32, %edx
	callq	_MTHCA_PUT
	movl	8(%r12), %esi
	movq	_CMD_INIT_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_mthca_cmd
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mthca_free_mailbox
	movl	%ebx, %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_INIT_IB,4,2                ## @CMD_INIT_IB
	.comm	_CMD_TIME_CLASS_A,4,2           ## @CMD_TIME_CLASS_A
	.comm	_INIT_IB_FLAGS_OFFSET,4,2       ## @INIT_IB_FLAGS_OFFSET
	.comm	_INIT_IB_FLAG_G0,4,2            ## @INIT_IB_FLAG_G0
	.comm	_INIT_IB_FLAG_NG,4,2            ## @INIT_IB_FLAG_NG
	.comm	_INIT_IB_FLAG_SIG,4,2           ## @INIT_IB_FLAG_SIG
	.comm	_INIT_IB_GUID0_OFFSET,4,2       ## @INIT_IB_GUID0_OFFSET
	.comm	_INIT_IB_IN_SIZE,4,2            ## @INIT_IB_IN_SIZE
	.comm	_INIT_IB_MAX_GID_OFFSET,4,2     ## @INIT_IB_MAX_GID_OFFSET
	.comm	_INIT_IB_MAX_PKEY_OFFSET,4,2    ## @INIT_IB_MAX_PKEY_OFFSET
	.comm	_INIT_IB_MTU_SHIFT,4,2          ## @INIT_IB_MTU_SHIFT
	.comm	_INIT_IB_NODE_GUID_OFFSET,4,2   ## @INIT_IB_NODE_GUID_OFFSET
	.comm	_INIT_IB_PORT_WIDTH_SHIFT,4,2   ## @INIT_IB_PORT_WIDTH_SHIFT
	.comm	_INIT_IB_SI_GUID_OFFSET,4,2     ## @INIT_IB_SI_GUID_OFFSET
	.comm	_INIT_IB_VL_SHIFT,4,2           ## @INIT_IB_VL_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_INIT_IB                  ; -- Begin function mthca_INIT_IB
	.p2align	2
_mthca_INIT_IB:                         ; @mthca_INIT_IB
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mthca_alloc_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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, [x20]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldp	x9, x8, [x22, #40]
	cmp	x8, #0
	cset	w8, ne
	lsl	w8, w8, #16
	ldr	x10, [x22, #32]
	cmp	x9, #0
	cset	w9, ne
	bfi	w8, w9, #17, #1
	cmp	x10, #0
	cset	w9, ne
	bfi	w8, w9, #18, #1
	ldp	w9, w10, [x22]
	orr	w8, w8, w9, lsl #4
	orr	w8, w8, w10, lsl #8
	ldr	w9, [x22, #8]
	orr	w1, w8, w9, lsl #12
	mov	x0, x23
	mov	w2, #0
	bl	_MTHCA_PUT
	ldr	w1, [x22, #12]
	mov	x0, x23
	mov	w2, #6
	bl	_MTHCA_PUT
	ldr	w1, [x22, #16]
	mov	x0, x23
	mov	w2, #10
	bl	_MTHCA_PUT
	ldr	w1, [x22, #20]
	mov	x0, x23
	mov	w2, #16
	bl	_MTHCA_PUT
	ldr	w1, [x22, #24]
	mov	x0, x23
	mov	w2, #24
	bl	_MTHCA_PUT
	ldr	w1, [x22, #28]
	mov	x0, x23
	mov	w2, #32
	bl	_MTHCA_PUT
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x8, _CMD_INIT_IB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_INIT_IB@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _CMD_TIME_CLASS_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_mthca_cmd
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mthca_free_mailbox
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CMD_INIT_IB,4,2                ; @CMD_INIT_IB
	.comm	_CMD_TIME_CLASS_A,4,2           ; @CMD_TIME_CLASS_A
	.comm	_INIT_IB_FLAGS_OFFSET,4,2       ; @INIT_IB_FLAGS_OFFSET
	.comm	_INIT_IB_FLAG_G0,4,2            ; @INIT_IB_FLAG_G0
	.comm	_INIT_IB_FLAG_NG,4,2            ; @INIT_IB_FLAG_NG
	.comm	_INIT_IB_FLAG_SIG,4,2           ; @INIT_IB_FLAG_SIG
	.comm	_INIT_IB_GUID0_OFFSET,4,2       ; @INIT_IB_GUID0_OFFSET
	.comm	_INIT_IB_IN_SIZE,4,2            ; @INIT_IB_IN_SIZE
	.comm	_INIT_IB_MAX_GID_OFFSET,4,2     ; @INIT_IB_MAX_GID_OFFSET
	.comm	_INIT_IB_MAX_PKEY_OFFSET,4,2    ; @INIT_IB_MAX_PKEY_OFFSET
	.comm	_INIT_IB_MTU_SHIFT,4,2          ; @INIT_IB_MTU_SHIFT
	.comm	_INIT_IB_NODE_GUID_OFFSET,4,2   ; @INIT_IB_NODE_GUID_OFFSET
	.comm	_INIT_IB_PORT_WIDTH_SHIFT,4,2   ; @INIT_IB_PORT_WIDTH_SHIFT
	.comm	_INIT_IB_SI_GUID_OFFSET,4,2     ; @INIT_IB_SI_GUID_OFFSET
	.comm	_INIT_IB_VL_SHIFT,4,2           ; @INIT_IB_VL_SHIFT
.subsections_via_symbols
