	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_new_child_link
_ipoib_new_child_link:                  ## @ipoib_new_child_link
	.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
	movq	%rdi, %rbx
	movq	_IFLA_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_nla_get_u32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rcx
	movq	_ARPHRD_INFINIBAND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	%r13, %rbx
	movq	%rax, %rdi
	callq	_ipoib_priv
	movq	%rax, %r13
	movq	_IPOIB_FLAG_SUBINTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_ipoib_warn
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	_IFLA_IPOIB_PKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	callq	_nla_get_u16
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_ipoib_dbg
	movl	8(%r13), %eax
LBB0_12:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	8(%r14), %edx
	movq	%r14, %rcx
	callq	_ipoib_intf_init
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_ipoib_warn
	jmp	LBB0_19
LBB0_14:
	movq	%r14, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	callq	_ipoib_priv
	movq	_IPOIB_RTNL_CHILD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	___ipoib_vlan_add
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_19
## %bb.15:
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.16:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_ipoib_changelink
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_unregister_netdevice
	jmp	LBB0_19
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_LINK,8,3                  ## @IFLA_LINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ARPHRD_INFINIBAND,8,3          ## @ARPHRD_INFINIBAND
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IPOIB_FLAG_SUBINTERFACE,4,2    ## @IPOIB_FLAG_SUBINTERFACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child creation disallowed for child devices\n"

	.comm	_IFLA_IPOIB_PKEY,8,3            ## @IFLA_IPOIB_PKEY
L_.str.1:                               ## @.str.1
	.asciz	"no pkey specified, using parent pkey\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to initialize pkey device\n"

	.comm	_IPOIB_RTNL_CHILD,4,2           ## @IPOIB_RTNL_CHILD
	.no_dead_strip	_ipoib_new_child_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_new_child_link
_ipoib_new_child_link:                  ; @ipoib_new_child_link
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x0
Lloh0:
	adrp	x8, _IFLA_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_LINK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x2, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x23
	bl	___dev_get_by_index
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _ARPHRD_INFINIBAND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_INFINIBAND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	bl	_ipoib_priv
	mov	x23, x0
Lloh6:
	adrp	x8, _IPOIB_FLAG_SUBINTERFACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPOIB_FLAG_SUBINTERFACE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x23, #12
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_ipoib_warn
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_8:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	x21, LBB0_12
; %bb.10:
Lloh15:
	adrp	x8, _IFLA_IPOIB_PKEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFLA_IPOIB_PKEY@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_nla_get_u16
	mov	x25, x0
	b	LBB0_13
LBB0_12:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_ipoib_dbg
	ldr	w25, [x23, #8]
LBB0_13:
	ldp	w1, w0, [x23]
	ldr	w2, [x19, #8]
	mov	x3, x19
	bl	_ipoib_intf_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x24, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_ipoib_warn
	b	LBB0_8
LBB0_15:
	mov	x0, x19
	bl	_ipoib_priv
	mov	x1, x0
Lloh22:
	adrp	x8, _IPOIB_RTNL_CHILD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IPOIB_RTNL_CHILD@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x2, x25
	bl	___ipoib_vlan_add
	mov	x24, x0
	cbz	x21, LBB0_8
; %bb.16:
	cbnz	w24, LBB0_8
; %bb.17:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_ipoib_changelink
	mov	x24, x0
	cbz	w0, LBB0_8
; %bb.18:
	mov	x0, x19
	bl	_unregister_netdevice
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_LINK,8,3                  ; @IFLA_LINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ARPHRD_INFINIBAND,8,3          ; @ARPHRD_INFINIBAND
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IPOIB_FLAG_SUBINTERFACE,4,2    ; @IPOIB_FLAG_SUBINTERFACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child creation disallowed for child devices\n"

	.comm	_IFLA_IPOIB_PKEY,8,3            ; @IFLA_IPOIB_PKEY
l_.str.1:                               ; @.str.1
	.asciz	"no pkey specified, using parent pkey\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to initialize pkey device\n"

	.comm	_IPOIB_RTNL_CHILD,4,2           ; @IPOIB_RTNL_CHILD
	.no_dead_strip	_ipoib_new_child_link
.subsections_via_symbols
