	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_parent_init
_ipoib_parent_init:                     ## @ipoib_parent_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_ipoib_priv
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	16(%rax), %rdi
	leaq	-32(%rbp), %rdx
	callq	_ib_query_port
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	(%rbx), %rdx
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_7
LBB0_2:
	movl	-32(%rbp), %edi
	callq	_ib_mtu_enum_to_int
	movl	%eax, 32(%rbx)
	movq	(%rbx), %rsi
	movq	16(%rbx), %rdi
	leaq	28(%rbx), %rcx
	xorl	%edx, %edx
	callq	_ib_query_pkey
	movq	16(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	4(%rdi), %esi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rsi
	movq	%rbx, %rcx
	addq	$24, %rcx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_rdma_query_gid
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movq	(%rbx), %rdx
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_pr_warn
	movl	%r15d, %r14d
	jmp	LBB0_7
LBB0_6:
	movq	8(%rbx), %rax
	movq	16(%rax), %rdi
	addq	$4, %rdi
	movl	24(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	callq	_SET_NETDEV_DEV
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	decq	%rax
	movq	%rax, 8(%rcx)
	movq	%rax, (%rcx)
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ib_query_port %d failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: ib_query_pkey port %d failed (ret = %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: rdma_query_gid port %d failed (ret = %d)\n"

	.no_dead_strip	_ipoib_parent_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_parent_init
_ipoib_parent_init:                     ; @ipoib_parent_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_ipoib_priv
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x1, [x19]
	add	x2, sp, #8
	bl	_ib_query_port
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #4]
	ldr	x2, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_7
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_ib_mtu_enum_to_int
	str	w0, [x19, #32]
	ldr	x0, [x19, #16]
	ldr	x1, [x19]
	add	x3, x19, #28
	mov	w2, #0
	bl	_ib_query_pkey
	mov	x20, x0
	ldr	x0, [x19, #16]
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w1, [x0, #4]
	ldr	x2, [x19]
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	b	LBB0_7
LBB0_4:
	mov	x3, x19
	ldr	x1, [x3], #24
	mov	w2, #0
	bl	_rdma_query_gid
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #4]
	ldr	x2, [x19]
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	add	x0, x8, #4
	ldr	w1, [x19, #24]
	mov	w2, #4
	bl	_memcpy
	ldp	x0, x8, [x19, #8]
	ldr	w1, [x8]
	bl	_SET_NETDEV_DEV
	ldp	x8, x9, [x19]
	sub	x8, x8, #1
	stp	x8, x8, [x9]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ib_query_port %d failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: ib_query_pkey port %d failed (ret = %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: rdma_query_gid port %d failed (ret = %d)\n"

	.no_dead_strip	_ipoib_parent_init
.subsections_via_symbols
