	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_abort
_srp_abort:                             ## @srp_abort
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	callq	_host_to_target
	movq	%rax, %r15
	movq	24(%rbx), %r14
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	callq	_shost_printk
	movq	_FAILED@GOTPCREL(%rip), %r12
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_srp_claim_req
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	_SRP_TSK_ABORT_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_srp_send_tsk_mgmt
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_srp_free_req
	movq	_DID_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_SUCCESS@GOTPCREL(%rip), %r12
LBB0_3:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SRP abort called\n"

	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_SRP_TSK_ABORT_TASK,4,2         ## @SRP_TSK_ABORT_TASK
	.comm	_DID_ABORT,4,2                  ## @DID_ABORT
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_srp_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_abort
_srp_abort:                             ; @srp_abort
	.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, #16]
	ldr	w0, [x8, #4]
	bl	_host_to_target
	mov	x20, x0
	ldr	x21, [x19, #24]
Lloh0:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_shost_printk
	cbz	x21, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_srp_claim_req
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x21]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _SRP_TSK_ABORT_TASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SRP_TSK_ABORT_TASK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_srp_send_tsk_mgmt
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w3, #0
	bl	_srp_free_req
Lloh8:
	adrp	x8, _DID_ABORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DID_ABORT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	str	w8, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
Lloh11:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SRP abort called\n"

	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_SRP_TSK_ABORT_TASK,4,2         ; @SRP_TSK_ABORT_TASK
	.comm	_DID_ABORT,4,2                  ; @DID_ABORT
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_srp_abort
.subsections_via_symbols
