	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detach_ulds
_detach_ulds:                           ## @detach_ulds
	.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	%rdi, %r15
	movq	_uld_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	leaq	8(%r15), %rdi
	callq	_list_del
	movq	_CXGB4_ULD_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	movq	_CXGB4_STATE_DETACH@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	addq	$16, %r12
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rcx,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	callq	*(%rcx,%r12)
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_6:
	movq	_netevent_registered@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.7:
	movq	_adapter_list@GOTPCREL(%rip), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_cxgb4_netevent_nb@GOTPCREL(%rip), %rdi
	callq	_unregister_netevent_notifier
	movl	$0, (%rbx)
LBB0_9:
	movq	_uld_mutex@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_uld_mutex,4,2                  ## @uld_mutex
	.comm	_CXGB4_ULD_MAX,4,2              ## @CXGB4_ULD_MAX
	.comm	_CXGB4_STATE_DETACH,4,2         ## @CXGB4_STATE_DETACH
	.comm	_netevent_registered,4,2        ## @netevent_registered
	.comm	_adapter_list,4,2               ## @adapter_list
	.comm	_cxgb4_netevent_nb,4,2          ## @cxgb4_netevent_nb
	.no_dead_strip	_detach_ulds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detach_ulds
_detach_ulds:                           ; @detach_ulds
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _uld_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _uld_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	add	x0, x19, #8
	bl	_list_del
Lloh2:
	adrp	x20, _CXGB4_ULD_MAX@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CXGB4_ULD_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh4:
	adrp	x23, _CXGB4_STATE_DETACH@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CXGB4_STATE_DETACH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, uxtw
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x9, x21]
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x21
	ldr	x8, [x8, #8]
	ldr	w1, [x23]
	blr	x8
	ldr	w8, [x20]
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x19, _netevent_registered@GOTPAGE
Lloh7:
	ldr	x19, [x19, _netevent_registered@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
Lloh8:
	adrp	x0, _adapter_list@GOTPAGE
Lloh9:
	ldr	x0, [x0, _adapter_list@GOTPAGEOFF]
	bl	_list_empty
	cbz	x0, LBB0_9
; %bb.8:
Lloh10:
	adrp	x0, _cxgb4_netevent_nb@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cxgb4_netevent_nb@GOTPAGEOFF]
	bl	_unregister_netevent_notifier
	str	wzr, [x19]
LBB0_9:
Lloh12:
	adrp	x0, _uld_mutex@GOTPAGE
Lloh13:
	ldr	x0, [x0, _uld_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_uld_mutex,4,2                  ; @uld_mutex
	.comm	_CXGB4_ULD_MAX,4,2              ; @CXGB4_ULD_MAX
	.comm	_CXGB4_STATE_DETACH,4,2         ; @CXGB4_STATE_DETACH
	.comm	_netevent_registered,4,2        ; @netevent_registered
	.comm	_adapter_list,4,2               ; @adapter_list
	.comm	_cxgb4_netevent_nb,4,2          ; @cxgb4_netevent_nb
	.no_dead_strip	_detach_ulds
.subsections_via_symbols
