	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ipoib_vlan_add               ## -- Begin function __ipoib_vlan_add
	.p2align	4, 0x90
___ipoib_vlan_add:                      ## @__ipoib_vlan_add
	.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	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	60(%rdi), %edi
	movl	%edi, 60(%rsi)
	callq	_IPOIB_UD_MTU
	movq	8(%r12), %rcx
	movl	%eax, 24(%rcx)
	movl	%eax, 52(%r12)
	movl	%eax, 56(%r12)
	movq	_IPOIB_FLAG_SUBINTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r12), %rsi
	callq	_set_bit
	movq	40(%r14), %rsi
	movq	%r12, %rdi
	callq	_ipoib_set_dev_features
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movl	%r13d, (%r12)
	movq	8(%r12), %rax
	movl	20(%rax), %edi
	movq	8(%r14), %rax
	movl	20(%rax), %esi
	movq	_INFINIBAND_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	%r13d, %eax
	sarl	$8, %eax
	movq	8(%r12), %rdi
	movq	(%rdi), %rcx
	movl	%eax, 32(%rcx)
	movzbl	%r13b, %eax
	movl	%eax, 36(%rcx)
	movq	40(%r14), %rsi
	movl	32(%r14), %edx
	callq	_ipoib_dev_init
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	8(%r12), %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ipoib_warn
	jmp	LBB0_12
LBB0_2:
	movl	%eax, %ebx
	movq	40(%r14), %rax
	movl	(%rax), %edx
	movl	32(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ipoib_warn
	jmp	LBB0_13
LBB0_5:
	movq	8(%r14), %rax
	movq	%rax, 24(%r12)
	movq	8(%r12), %rdi
	callq	_ipoib_create_debug_files
	movq	_IPOIB_LEGACY_CHILD@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_10
## %bb.6:
	movq	8(%r12), %rdi
	callq	_ipoib_cm_add_mode_attr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movq	8(%r12), %rdi
	callq	_ipoib_add_pkey_attr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	8(%r12), %rdi
	callq	_ipoib_add_umcast_attr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	8(%r12), %rdi
	addq	$16, %rdi
	movq	_dev_attr_parent@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r12), %rdi
	callq	_ipoib_delete_debug_files
	movq	8(%r12), %rdi
	callq	_unregister_netdevice
LBB0_12:
	movq	8(%r12), %rdi
	callq	_ipoib_dev_cleanup
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r15d, 4(%r12)
	movq	8(%r14), %rax
	movl	8(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, 12(%rcx)
	addq	$20, %r12
	addq	$16, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_FLAG_SUBINTERFACE,4,2    ## @IPOIB_FLAG_SUBINTERFACE
	.comm	_INFINIBAND_ALEN,4,2            ## @INFINIBAND_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize subinterface: device %s, port %d"

L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize; error %i"

	.comm	_IPOIB_LEGACY_CHILD,4,2         ## @IPOIB_LEGACY_CHILD
	.comm	_dev_attr_parent,4,2            ## @dev_attr_parent
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ipoib_vlan_add               ; -- Begin function __ipoib_vlan_add
	.p2align	2
___ipoib_vlan_add:                      ; @__ipoib_vlan_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #60]
	str	w0, [x1, #60]
	bl	_IPOIB_UD_MTU
	ldr	x8, [x19, #8]
	str	w0, [x8, #24]
	stp	w0, w0, [x19, #52]
Lloh0:
	adrp	x8, _IPOIB_FLAG_SUBINTERFACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPOIB_FLAG_SUBINTERFACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_set_bit
	ldr	x1, [x20, #40]
	mov	x0, x19
	bl	_ipoib_set_dev_features
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.1:
	str	w23, [x19]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #20]
Lloh3:
	adrp	x8, _INFINIBAND_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFINIBAND_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	asr	w8, w23, #8
	ldr	x0, [x19, #8]
	ldr	x9, [x0]
	and	w10, w23, #0xff
	stp	w8, w10, [x9, #32]
	ldr	x1, [x20, #40]
	ldr	w2, [x20, #32]
	bl	_ipoib_dev_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_register_netdevice
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_ipoib_warn
	b	LBB0_11
LBB0_4:
	mov	x22, x0
	ldr	x8, [x20, #40]
	ldr	w2, [x8]
	ldr	w8, [x20, #32]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ipoib_warn
	b	LBB0_12
LBB0_5:
	ldr	x8, [x20, #8]
	str	x8, [x19, #24]
	ldr	x0, [x19, #8]
	bl	_ipoib_create_debug_files
Lloh10:
	adrp	x8, _IPOIB_LEGACY_CHILD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPOIB_LEGACY_CHILD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_ipoib_cm_add_mode_attr
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	x0, [x19, #8]
	bl	_ipoib_add_pkey_attr
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_ipoib_add_umcast_attr
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	add	x0, x8, #16
Lloh13:
	adrp	x1, _dev_attr_parent@GOTPAGE
Lloh14:
	ldr	x1, [x1, _dev_attr_parent@GOTPAGEOFF]
	bl	_device_create_file
	cbz	x0, LBB0_13
LBB0_10:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x0, [x19, #8]
	bl	_ipoib_delete_debug_files
	ldr	x0, [x19, #8]
	bl	_unregister_netdevice
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_ipoib_dev_cleanup
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	str	w21, [x19, #4]
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
	ldr	x9, [x19, #8]
	str	w8, [x9, #12]
	add	x0, x19, #20
	add	x1, x20, #16
	bl	_list_add_tail
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_FLAG_SUBINTERFACE,4,2    ; @IPOIB_FLAG_SUBINTERFACE
	.comm	_INFINIBAND_ALEN,4,2            ; @INFINIBAND_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize subinterface: device %s, port %d"

l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize; error %i"

	.comm	_IPOIB_LEGACY_CHILD,4,2         ; @IPOIB_LEGACY_CHILD
	.comm	_dev_attr_parent,4,2            ; @dev_attr_parent
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
