	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_handle_new_iu
_srpt_handle_new_iu:                    ## @srpt_handle_new_iu
	.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	%rsi, %r14
	movq	%rdi, %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	movq	(%r13), %rax
	movq	_CH_CONNECTING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_list_empty
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movl	8(%r13), %edi
	callq	_WARN_ON_ONCE
	addq	$12, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	jmp	LBB0_21
LBB0_3:
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	24(%r14), %esi
	movq	_srp_max_req_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	8(%r14), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_sync_single_for_cpu
	movq	16(%r14), %rax
	movslq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %r12d
	movl	%r12d, %eax
	andl	$-5, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_srpt_get_send_ioctx
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_6
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	cmpl	$0, 8(%r13)
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	%r14, %rdi
	callq	_list_del_init
LBB0_8:
	leal	-128(%r12), %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_srpt_handle_tsk_mgmt
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str(%rip), %rdi
LBB0_14:
	xorl	%eax, %eax
	callq	_pr_err
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_18
LBB0_16:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_srpt_handle_cmd
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
LBB0_18:
	callq	_pr_debug
	testq	%r15, %r15
	je	LBB0_20
LBB0_19:
	movl	$1, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_21
LBB0_20:
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_srpt_post_recv
	movl	$1, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_CH_CONNECTING,8,3              ## @CH_CONNECTING
	.comm	_srp_max_req_size,4,2           ## @srp_max_req_size
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not yet implemented: SRP_I_LOGOUT\n"

L_.str.1:                               ## @.str.1
	.asciz	"received SRP_CRED_RSP\n"

L_.str.2:                               ## @.str.2
	.asciz	"received SRP_AER_RSP\n"

L_.str.3:                               ## @.str.3
	.asciz	"Received SRP_RSP\n"

L_.str.4:                               ## @.str.4
	.asciz	"received IU with unknown opcode 0x%x\n"

	.no_dead_strip	_srpt_handle_new_iu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_handle_new_iu
_srpt_handle_new_iu:                    ; @srpt_handle_new_iu
	.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
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CH_CONNECTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CH_CONNECTING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_list_empty
	cbz	x0, LBB0_21
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_WARN_ON_ONCE
	add	x1, x20, #12
	mov	x0, x19
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_21
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
Lloh3:
	adrp	x8, _srp_max_req_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _srp_max_req_size@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh5:
	ldr	w8, [x8]
	add	w2, w8, w9
Lloh6:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_ib_dma_sync_single_for_cpu
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #8]
	ldr	w22, [x8, x9, lsl #2]
	and	w8, w22, #0xfffffffb
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_srpt_get_send_ioctx
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_1
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x19
	bl	_list_empty
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	mov	x0, x19
	bl	_list_del_init
LBB0_8:
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.9:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_srpt_handle_tsk_mgmt
	cbnz	x21, LBB0_18
	b	LBB0_19
LBB0_11:
	str	x22, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_pr_err
	cbnz	x21, LBB0_18
	b	LBB0_19
LBB0_15:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	cbnz	x21, LBB0_18
	b	LBB0_19
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_srpt_handle_cmd
	cbnz	x21, LBB0_18
	b	LBB0_19
LBB0_17:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	cbz	x21, LBB0_19
LBB0_18:
	ldr	w8, [x21]
	cbnz	w8, LBB0_20
LBB0_19:
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_srpt_post_recv
LBB0_20:
	mov	w0, #1
LBB0_21:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
                                        ; -- End function
	.comm	_CH_CONNECTING,8,3              ; @CH_CONNECTING
	.comm	_srp_max_req_size,4,2           ; @srp_max_req_size
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not yet implemented: SRP_I_LOGOUT\n"

l_.str.1:                               ; @.str.1
	.asciz	"received SRP_CRED_RSP\n"

l_.str.2:                               ; @.str.2
	.asciz	"received SRP_AER_RSP\n"

l_.str.3:                               ; @.str.3
	.asciz	"Received SRP_RSP\n"

l_.str.4:                               ; @.str.4
	.asciz	"received IU with unknown opcode 0x%x\n"

	.no_dead_strip	_srpt_handle_new_iu
.subsections_via_symbols
