	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_add_target
_srp_add_target:                        ## @srp_add_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	28(%rsi), %edi
	movl	32(%rsi), %ebx
	callq	_be64_to_cpu
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_sprintf
	movq	8(%r12), %rdi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_scsi_add_host
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	leaq	28(%r12), %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	24(%r12), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_SRP_RPORT_ROLE_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	8(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	_srp_rport_add
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rdi
	callq	_scsi_remove_host
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%r12, (%r15)
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	20(%r12), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_SRP_TARGET_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	8(%r12), %rdi
	movl	(%r12), %edx
	movq	_SCAN_WILD_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_scsi_scan_target
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SRP.T10:%016llX"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SRP_RPORT_ROLE_TARGET,4,2      ## @SRP_RPORT_ROLE_TARGET
	.comm	_SRP_TARGET_LIVE,4,2            ## @SRP_TARGET_LIVE
	.comm	_SCAN_WILD_CARD,4,2             ## @SCAN_WILD_CARD
	.no_dead_strip	_srp_add_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_add_target
_srp_add_target:                        ; @srp_add_target
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x21, x1
	ldp	w0, w22, [x21, #28]!
	bl	_be64_to_cpu
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_sprintf
	ldur	x0, [x21, #-20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_scsi_add_host
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	add	x1, x19, #24
	mov	w2, #8
	bl	_memcpy
Lloh5:
	adrp	x8, _SRP_RPORT_ROLE_TARGET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SRP_RPORT_ROLE_TARGET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x0, [x19, #8]
	mov	x1, sp
	bl	_srp_rport_add
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_scsi_remove_host
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_5
LBB0_4:
	str	x19, [x21]
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #20
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock
Lloh8:
	adrp	x8, _SRP_TARGET_LIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SRP_TARGET_LIVE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh11:
	adrp	x8, _SCAN_WILD_CARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCAN_WILD_CARD@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #0
	bl	_scsi_scan_target
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SRP.T10:%016llX"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SRP_RPORT_ROLE_TARGET,4,2      ; @SRP_RPORT_ROLE_TARGET
	.comm	_SRP_TARGET_LIVE,4,2            ; @SRP_TARGET_LIVE
	.comm	_SCAN_WILD_CARD,4,2             ; @SCAN_WILD_CARD
	.no_dead_strip	_srp_add_target
.subsections_via_symbols
