	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_reset_device
_srp_reset_device:                      ## @srp_reset_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	callq	_host_to_target
	movq	%rax, %rbx
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	callq	_shost_printk
	movq	(%rbx), %rdi
	movq	_SRP_TAG_NO_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	_SRP_TSK_LUN_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	callq	_srp_send_tsk_mgmt
	orq	-24(%rbp), %rax
	jne	LBB0_1
## %bb.2:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FAILED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SRP reset_device called\n"

	.comm	_SRP_TAG_NO_REQ,4,2             ## @SRP_TAG_NO_REQ
	.comm	_SRP_TSK_LUN_RESET,4,2          ## @SRP_TSK_LUN_RESET
	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_srp_reset_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_reset_device
_srp_reset_device:                      ; @srp_reset_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_host_to_target
	mov	x20, x0
Lloh0:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_shost_printk
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _SRP_TAG_NO_REQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SRP_TAG_NO_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _SRP_TSK_LUN_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SRP_TSK_LUN_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_srp_send_tsk_mgmt
	ldr	x8, [sp, #8]
	orr	x8, x0, x8
Lloh11:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh13:
	adrp	x10, _FAILED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FAILED@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SRP reset_device called\n"

	.comm	_SRP_TAG_NO_REQ,4,2             ; @SRP_TAG_NO_REQ
	.comm	_SRP_TSK_LUN_RESET,4,2          ; @SRP_TSK_LUN_RESET
	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_srp_reset_device
.subsections_via_symbols
