	.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_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ulds@GOTPCREL(%rip), %r12
	movq	_CXGB4_STATE_DETACH@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%r13), %esi
	callq	*(%rax,%rbx,8)
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_netevent_registered@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.6:
	movq	_adapter_list@GOTPCREL(%rip), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_cxgb4_netevent_nb@GOTPCREL(%rip), %rdi
	callq	_unregister_netevent_notifier
	movl	$0, (%rbx)
LBB0_8:
	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	_ulds,8,3                       ## @ulds
	.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_5
; %bb.1:
	mov	x21, #0
Lloh4:
	adrp	x22, _ulds@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ulds@GOTPAGEOFF]
Lloh6:
	adrp	x23, _CXGB4_STATE_DETACH@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CXGB4_STATE_DETACH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	lsl	x24, x21, #3
	ldr	x8, [x8, x24]
	ldr	w1, [x23]
	blr	x8
	ldr	x8, [x19]
	str	xzr, [x8, x24]
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
Lloh8:
	adrp	x19, _netevent_registered@GOTPAGE
Lloh9:
	ldr	x19, [x19, _netevent_registered@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.6:
Lloh10:
	adrp	x0, _adapter_list@GOTPAGE
Lloh11:
	ldr	x0, [x0, _adapter_list@GOTPAGEOFF]
	bl	_list_empty
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, _cxgb4_netevent_nb@GOTPAGE
Lloh13:
	ldr	x0, [x0, _cxgb4_netevent_nb@GOTPAGEOFF]
	bl	_unregister_netevent_notifier
	str	wzr, [x19]
LBB0_8:
Lloh14:
	adrp	x0, _uld_mutex@GOTPAGE
Lloh15:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_uld_mutex,4,2                  ; @uld_mutex
	.comm	_CXGB4_ULD_MAX,4,2              ; @CXGB4_ULD_MAX
	.comm	_ulds,8,3                       ; @ulds
	.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
