	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_remove_target
_srp_remove_target:                     ## @srp_remove_target
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SRP_TARGET_REMOVED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON_ONCE
	movl	12(%r14), %edi
	callq	_srp_del_scsi_host_attr
	movl	40(%r14), %edi
	callq	_srp_rport_get
	movl	12(%r14), %edi
	callq	_srp_remove_host
	movl	12(%r14), %edi
	callq	_scsi_remove_host
	movl	40(%r14), %edi
	callq	_srp_stop_rport_timers
	movq	%r14, %rdi
	callq	_srp_disconnect_target
	movq	_KOBJ_NS_TYPE_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%r14), %esi
	callq	_kobj_ns_drop
	cmpl	$0, 8(%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_srp_free_ch_ib
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	leaq	44(%r14), %rdi
	callq	_cancel_work_sync
	movl	40(%r14), %edi
	callq	_srp_rport_put
	cmpl	$0, 8(%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_srp_free_req_data
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	32(%r14), %rdi
	callq	_kfree
	movq	$0, 32(%r14)
	movq	16(%r14), %rdi
	callq	_spin_lock
	leaq	24(%r14), %rdi
	callq	_list_del
	movq	16(%r14), %rdi
	callq	_spin_unlock
	movl	12(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsi_host_put                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SRP_TARGET_REMOVED,8,3         ## @SRP_TARGET_REMOVED
	.comm	_KOBJ_NS_TYPE_NET,4,2           ## @KOBJ_NS_TYPE_NET
	.no_dead_strip	_srp_remove_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_remove_target
_srp_remove_target:                     ; @srp_remove_target
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SRP_TARGET_REMOVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SRP_TARGET_REMOVED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON_ONCE
	ldr	w0, [x19, #12]
	bl	_srp_del_scsi_host_attr
	ldr	w0, [x19, #40]
	bl	_srp_rport_get
	ldr	w0, [x19, #12]
	bl	_srp_remove_host
	ldr	w0, [x19, #12]
	bl	_scsi_remove_host
	ldr	w0, [x19, #40]
	bl	_srp_stop_rport_timers
	mov	x0, x19
	bl	_srp_disconnect_target
Lloh3:
	adrp	x8, _KOBJ_NS_TYPE_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KOBJ_NS_TYPE_NET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_kobj_ns_drop
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x1, x8, x20
	mov	x0, x19
	bl	_srp_free_ch_ib
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	add	x0, x19, #44
	bl	_cancel_work_sync
	ldr	w0, [x19, #40]
	bl	_srp_rport_put
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x1, x8, x20
	mov	x0, x19
	bl	_srp_free_req_data
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x0, [x19, #32]
	bl	_kfree
	str	xzr, [x19, #32]
	ldr	x0, [x19, #16]
	bl	_spin_lock
	add	x0, x19, #24
	bl	_list_del
	ldr	x0, [x19, #16]
	bl	_spin_unlock
	ldr	w0, [x19, #12]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_scsi_host_put
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SRP_TARGET_REMOVED,8,3         ; @SRP_TARGET_REMOVED
	.comm	_KOBJ_NS_TYPE_NET,4,2           ; @KOBJ_NS_TYPE_NET
	.no_dead_strip	_srp_remove_target
.subsections_via_symbols
