	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_device_set_netns_put        ## -- Begin function ib_device_set_netns_put
	.p2align	4, 0x90
_ib_device_set_netns_put:               ## @ib_device_set_netns_put
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, %edi
	callq	_get_net_ns_by_fd
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_2
LBB0_3:
	movl	(%r12), %esi
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_netlink_ns_capable
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	cmpl	$0, 16(%r14)
	je	LBB0_5
## %bb.7:
	movq	8(%r14), %rcx
	movq	_ib_devices_shared_netns@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	jne	LBB0_5
## %bb.8:
	movq	%r14, %rdi
	callq	_get_device
	movq	%r14, %rdi
	callq	_ib_device_put
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_rdma_dev_change_netns
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_put_device
	movq	%r12, %rdi
	callq	_put_net
	jmp	LBB0_9
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_put_net
LBB0_2:
	movq	%r14, %rdi
	callq	_ib_device_put
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ib_devices_shared_netns,8,3    ## @ib_devices_shared_netns
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_device_set_netns_put        ; -- Begin function ib_device_set_netns_put
	.p2align	2
_ib_device_set_netns_put:               ; @ib_device_set_netns_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_get_net_ns_by_fd
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_8
LBB0_2:
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_netlink_ns_capable
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _ib_devices_shared_netns@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ib_devices_shared_netns@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x20
	bl	_put_net
LBB0_8:
	mov	x0, x19
	bl	_ib_device_put
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	bl	_get_device
	mov	x0, x19
	bl	_ib_device_put
Lloh10:
	adrp	x8, _current@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_rdma_dev_change_netns
	mov	x21, x0
	mov	x0, x19
	bl	_put_device
	mov	x0, x20
	bl	_put_net
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ib_devices_shared_netns,8,3    ; @ib_devices_shared_netns
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
