	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rsi), %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_ipoib_intf_free@GOTPCREL(%rip), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r15)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testl	$-32769, %r12d                  ## imm = 0xFFFF7FFF
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	%rax, 16(%r13)
	movl	%r12d, (%r13)
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, 4(%r13)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_is_child_unique
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_ipoib_warn
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r14d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_ENOTUNIQ@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rcx
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_IPOIB_LEGACY_CHILD@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	%r14d, (%rax)
	jne	LBB0_14
## %bb.9:
	movq	%rbx, %rdi
	callq	_ipoib_cm_add_mode_attr
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_ipoib_add_pkey_attr
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_ipoib_add_umcast_attr
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	addq	$16, %rbx
	movq	_dev_attr_parent@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	8(%r13), %rdi
	callq	_unregister_netdevice
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTUNIQ,4,2                   ## @ENOTUNIQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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:
	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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x1, #8]
	bl	_ASSERT_RTNL
Lloh0:
	adrp	x8, _ipoib_intf_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipoib_intf_free@GOTPAGEOFF]
	str	x8, [x19, #8]
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	tst	w23, #0xffff7fff
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x22, #8]
	str	x8, [x20, #16]
	stp	w23, w21, [x20]
	mov	x0, x22
	mov	x1, x20
	bl	_is_child_unique
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_register_netdevice
	cbz	w0, LBB0_9
; %bb.3:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ipoib_warn
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOTUNIQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTUNIQ@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
LBB0_7:
	mov	x0, x19
	blr	x8
LBB0_8:
	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
	ret
LBB0_9:
Lloh11:
	adrp	x8, _IPOIB_LEGACY_CHILD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPOIB_LEGACY_CHILD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_ipoib_cm_add_mode_attr
	cbnz	x0, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_ipoib_add_pkey_attr
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_ipoib_add_umcast_attr
	cbnz	x0, LBB0_14
; %bb.13:
	add	x0, x19, #16
Lloh14:
	adrp	x1, _dev_attr_parent@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_parent@GOTPAGEOFF]
	bl	_device_create_file
	cbz	x0, LBB0_15
LBB0_14:
	ldr	x0, [x20, #8]
	bl	_unregister_netdevice
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_15:
	mov	w22, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTUNIQ,4,2                   ; @ENOTUNIQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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
