	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_devcom_unregister_device  ## -- Begin function mlx5_devcom_unregister_device
	.p2align	4, 0x90
_mlx5_devcom_unregister_device:         ## @mlx5_devcom_unregister_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movq	24(%rbx), %r14
	movq	16(%r14), %rcx
	movq	$0, (%rcx,%rax,8)
	movq	%rbx, %rdi
	callq	_kfree
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.5:
	movq	16(%r14), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	cmpl	%eax, %ecx
	jne	LBB0_4
LBB0_8:
	leaq	8(%r14), %rdi
	callq	_list_del
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_MAX_PORTS,4,2             ## @MLX5_MAX_PORTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_devcom_unregister_device  ; -- Begin function mlx5_devcom_unregister_device
	.p2align	2
_mlx5_devcom_unregister_device:         ; @mlx5_devcom_unregister_device
	.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	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x19, [x20, #24]
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_kfree
Lloh0:
	adrp	x8, _MLX5_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x9, #0
	ldr	x10, [x19, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbnz	x11, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w9, #0
LBB0_7:
	cmp	w9, w8
	b.ne	LBB0_1
LBB0_8:
	add	x0, x19, #8
	bl	_list_del
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_MAX_PORTS,4,2             ; @MLX5_MAX_PORTS
.subsections_via_symbols
