	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_login_rsp
_handle_login_rsp:                      ## @handle_login_rsp
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rsi), %r14
	movq	32(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rbx
	movq	64(%rsi), %r12
	movl	60(%rsi), %esi
	movl	(%r13), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	movl	4(%r13), %edx
	movl	56(%r13), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, 48(%r13)
LBB0_9:
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_complete
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	32(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	cmpl	$-6, 4(%r13)
	jl	LBB0_5
## %bb.3:
	movq	$-1, %rbx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	32(%r13), %rdi
	movq	8(%rax,%rbx,8), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	4(%r13), %eax
	leal	-1(%rax), %ecx
	addl	$6, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	cltq
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.6:
	movl	8(%rcx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	imull	8(%r13), %r15d
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	cmpl	%eax, %r15d
	jne	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_release_login_buffer
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%r13), %rdi
	callq	_ibmvnic_remove
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Login Response Buffer:\n"

L_.str.1:                               ## @.str.1
	.asciz	"%016lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"FATAL: Inconsistent login and login rsp\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_handle_login_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_login_rsp
_handle_login_rsp:                      ; @handle_login_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldp	x22, x24, [x1, #24]
	ldr	x20, [x1, #16]
	ldr	x23, [x1, #64]
	ldr	w1, [x1, #60]
	ldr	w2, [x19]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_unmap_single
	ldr	w1, [x19, #56]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_unmap_single
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	str	x8, [x19, #48]
LBB0_2:
	add	x0, x19, #12
	bl	_complete
	mov	w0, #0
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldp	x0, x9, [x19, #32]
	sub	x8, x9, x8
	str	x8, [x24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	ldr	w8, [x19, #4]
	cmn	w8, #6
	b.lt	LBB0_6
; %bb.4:
	mov	x24, #0
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x0, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	str	x8, [sp]
	mov	x1, x21
	bl	_netdev_dbg
	ldr	w8, [x19, #4]
	sub	w9, w8, #1
	add	w8, w8, #6
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #3
	cmp	x24, w8, sxtw
	add	x24, x24, #1
	b.lt	LBB0_5
LBB0_6:
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	ldr	w8, [x19, #8]
	mul	w21, w8, w0
	ldr	w0, [x22, #8]
	bl	_be32_to_cpu
	cmp	w21, w0
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_release_login_buffer
	b	LBB0_2
LBB0_9:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	bl	_ibmvnic_remove
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Login Response Buffer:\n"

l_.str.1:                               ; @.str.1
	.asciz	"%016lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"FATAL: Inconsistent login and login rsp\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_handle_login_rsp
.subsections_via_symbols
