	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_one_compat_dev
_add_one_compat_dev:                    ## @add_one_compat_dev
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_rdma_nets_rwsem@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movq	_ib_devices_shared_netns@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.1:
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	callq	_read_pnet
	movl	%eax, %ebx
	leaq	12(%r12), %rdi
	callq	_read_pnet
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_net_eq
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	4(%r12), %rbx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_xa_load
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	movl	(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_xa_reserve
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rcx
	leaq	8(%r12), %r15
	movl	8(%r12), %eax
	movl	%eax, 4(%rcx)
	movq	%r13, %rdi
	movq	%rcx, %r13
	callq	_read_pnet
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_rdma_init_coredev
	movq	_compatdev_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_set_name
	movq	%r13, %rdi
	callq	_device_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r13, %rdi
	callq	_ib_setup_port_attrs
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_xa_store
	movl	%eax, %edi
	callq	_xa_err
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_ib_free_port_attrs
LBB0_11:
	movq	%r13, %rdi
	callq	_device_del
LBB0_12:
	movq	%r13, %rdi
	callq	_put_device
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_xa_release
LBB0_14:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_rdma_nets_rwsem,4,2            ## @rdma_nets_rwsem
	.comm	_ib_devices_shared_netns,4,2    ## @ib_devices_shared_netns
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_compatdev_release,4,2          ## @compatdev_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_add_one_compat_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_one_compat_dev
_add_one_compat_dev:                    ; @add_one_compat_dev
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _rdma_nets_rwsem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _rdma_nets_rwsem@GOTPAGEOFF]
	bl	_lockdep_assert_held
Lloh2:
	adrp	x8, _ib_devices_shared_netns@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ib_devices_shared_netns@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	add	x24, x20, #4
	mov	x0, x24
	bl	_read_pnet
	mov	x21, x0
	add	x0, x19, #12
	bl	_read_pnet
	mov	x1, x0
	mov	x0, x21
	bl	_net_eq
	cbz	x0, LBB0_3
LBB0_2:
	mov	w23, #0
	b	LBB0_16
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock
	add	x21, x19, #4
	ldr	w1, [x20]
	mov	x0, x21
	bl	_xa_load
	cbz	x0, LBB0_5
; %bb.4:
	mov	w23, #0
	b	LBB0_15
LBB0_5:
	ldr	w1, [x20]
Lloh5:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_xa_reserve
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.6:
	ldr	w1, [x25]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.7:
	mov	x22, x0
	mov	x23, x19
	ldr	w8, [x23, #8]!
	str	w8, [x0, #4]
	mov	x0, x24
	bl	_read_pnet
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_rdma_init_coredev
Lloh7:
	adrp	x8, _compatdev_release@GOTPAGE
Lloh8:
	ldr	x8, [x8, _compatdev_release@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x23
	bl	_dev_name
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_set_name
	mov	x0, x22
	bl	_device_add
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.8:
	mov	x0, x22
	bl	_ib_setup_port_attrs
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w1, [x20]
	ldr	w3, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_xa_store
	bl	_xa_err
	mov	x23, x0
	cbz	w0, LBB0_15
; %bb.10:
	mov	x0, x22
	bl	_ib_free_port_attrs
LBB0_11:
	mov	x0, x22
	bl	_device_del
LBB0_12:
	mov	x0, x22
	bl	_put_device
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_xa_release
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_rdma_nets_rwsem,4,2            ; @rdma_nets_rwsem
	.comm	_ib_devices_shared_netns,4,2    ; @ib_devices_shared_netns
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_compatdev_release,4,2          ; @compatdev_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_add_one_compat_dev
.subsections_via_symbols
