	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_device_get_netdev           ## -- Begin function ib_device_get_netdev
	.p2align	4, 0x90
_ib_device_get_netdev:                  ## @ib_device_get_netdev
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rax
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_3:
	movq	8(%rbx), %r15
	movl	%r14d, %ebx
	leaq	(%r15,%rbx,8), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	4(%r15,%rbx,8), %ebx
	movq	%r14, %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_dev_hold
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_7:
	movq	(%rbx), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_device_get_netdev           ; -- Begin function ib_device_get_netdev
	.p2align	2
_ib_device_get_netdev:                  ; @ib_device_get_netdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x19, x0
	cbnz	x19, LBB0_6
	b	LBB0_9
LBB0_3:
	ldr	x8, [x20, #8]
	add	x20, x8, w19, uxtw #3
	mov	x0, x20
	bl	_spin_lock
	ldr	w19, [x20, #4]
	mov	x0, x20
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x19
	bl	_rcu_dereference_protected
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_dev_hold
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock
	cbz	x19, LBB0_9
LBB0_6:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_dev_put
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
.subsections_via_symbols
