	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_login
_send_login:                            ## @send_login
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpq	$0, 64(%rdi)
	je	LBB0_2
## %bb.1:
	cmpq	$0, 56(%r12)
	je	LBB0_2
## %bb.3:
	movq	80(%r12), %r13
	movq	%r12, %rdi
	callq	_release_login_rsp_buffer
	movq	%r12, %rdi
	callq	_vnic_client_data_len
	movslq	(%r12), %rcx
	movslq	4(%r12), %rdx
	addq	%rcx, %rdx
	movslq	%eax, %r14
	leaq	(%r14,%rdx,4), %rbx
	addq	$80, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_24
## %bb.4:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_dma_map_single
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_2:
	movl	48(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movl	$-1, %r15d
	jmp	LBB0_24
LBB0_6:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %rax
	movslq	4(%r12), %rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rax,4), %rax
	movq	_IBMVNIC_TX_DESC_VERSIONS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$80, %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rbx
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r14
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_dma_map_single
	movq	%r13, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_unmap_single
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_24:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 40(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 16(%r12)
	movq	%r14, 72(%r12)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 24(%r12)
	movq	%rbx, 32(%r12)
	movq	%rdi, %r13
	callq	_cpu_to_be32
	movq	%rax, 72(%r15)
	movq	_INITIAL_VERSION_LB@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_be32
	movq	%rax, 64(%r15)
	movslq	(%r12), %rdi
	callq	_cpu_to_be32
	movq	%rax, 56(%r15)
	movl	$80, %edi
	callq	_cpu_to_be32
	movq	%rax, 48(%r15)
	movslq	4(%r12), %rdi
	callq	_cpu_to_be32
	movq	%rax, 40(%r15)
	movslq	(%r12), %rax
	leaq	80(,%rax,4), %rdi
	callq	_cpu_to_be32
	movq	%rax, 32(%r15)
	movq	%r14, %rdi
	callq	_cpu_to_be32
	movq	%rax, 24(%r15)
	movq	%rbx, %rdi
	callq	_cpu_to_be32
	movq	%rax, 16(%r15)
	movslq	(%r12), %r14
	testq	%r14, %r14
	jle	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	80(%rax), %r15
	xorl	%ebx, %ebx
	movl	%r14d, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rcx), %edi
	callq	_cpu_to_be64
	movl	%eax, (%r15,%rbx,4)
	movl	(%r12), %eax
	jmp	LBB0_15
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %r15
	addq	$80, %r15
	movslq	4(%r12), %rcx
	testq	%rcx, %rcx
	jle	LBB0_21
## %bb.17:
	shlq	$2, %r14
	addq	%rax, %r14
	addq	$80, %r14
	xorl	%ebx, %ebx
	movl	%ecx, %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rcx), %edi
	callq	_cpu_to_be64
	movl	%eax, (%r14,%rbx,4)
	movl	4(%r12), %eax
	jmp	LBB0_20
LBB0_21:
	leaq	(%r15,%rcx,4), %r14
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	subq	%rbx, %rdi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_be32
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_vnic_add_client_data
	movl	48(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	$-1, %rbx
	leaq	L_.str.4(%rip), %r14
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	48(%r12), %edi
	movq	40(%r12), %rax
	movq	8(%rax,%rbx,8), %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	16(%r12), %rax
	decq	%rax
	shrq	$3, %rax
	incq	%rbx
	cmpq	%rbx, %rax
	ja	LBB0_22
## %bb.23:
	leaq	-104(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_IBMVNIC_CRQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_LOGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_be32
	movq	%rax, -96(%rbp)
	movq	%r13, %rdi
	callq	_cpu_to_be32
	movq	%rax, -104(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ibmvnic_send_crq
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX or TX queues are not allocated, device login failed\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't map login buffer\n"

	.comm	_IBMVNIC_TX_DESC_VERSIONS,4,2   ## @IBMVNIC_TX_DESC_VERSIONS
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't map login rsp buffer\n"

	.comm	_INITIAL_VERSION_LB,8,3         ## @INITIAL_VERSION_LB
L_.str.3:                               ## @.str.3
	.asciz	"Login Buffer:\n"

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

	.comm	_IBMVNIC_CRQ_CMD,4,2            ## @IBMVNIC_CRQ_CMD
	.comm	_LOGIN,4,2                      ## @LOGIN
	.no_dead_strip	_send_login
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_login
_send_login:                            ; @send_login
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x24, [x19, #80]
	mov	x0, x19
	bl	_release_login_rsp_buffer
	mov	x0, x19
	bl	_vnic_client_data_len
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w8, w9, [x19]
	add	w8, w9, w8
	sxtw	x23, w0
	add	x8, x23, w8, sxtw #2
	add	x20, x8, #80
Lloh0:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x22, x0
Lloh2:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x20
	bl	_dma_map_single
	mov	x21, x0
	mov	x0, x24
	mov	x1, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_6
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	b	LBB0_10
LBB0_5:
	ldr	w0, [x19, #48]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_11
LBB0_6:
	ldpsw	x8, x9, [x19]
	lsl	x8, x8, #2
	add	x8, x8, x9, lsl #3
Lloh8:
	adrp	x9, _IBMVNIC_TX_DESC_VERSIONS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IBMVNIC_TX_DESC_VERSIONS@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	add	x25, x8, #80
	ldr	w1, [x26]
	mov	x0, x25
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.7:
	mov	x27, x0
Lloh11:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x25
	bl	_dma_map_single
	mov	x26, x0
	mov	x0, x24
	mov	x1, x26
	bl	_dma_mapping_error
	cbz	x0, LBB0_13
; %bb.8:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	mov	x0, x27
	bl	_kfree
LBB0_9:
	ldr	w3, [x28]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	bl	_dma_unmap_single
LBB0_10:
	mov	x0, x22
	bl	_kfree
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	stp	x25, x22, [x19, #32]
	stp	x21, x20, [x19, #8]
	str	x27, [x19, #72]
	str	x26, [x19, #24]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x22, #72]
Lloh16:
	adrp	x8, _INITIAL_VERSION_LB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INITIAL_VERSION_LB@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	bl	_cpu_to_be32
	str	x0, [x22, #64]
	ldrsw	x0, [x19]
	bl	_cpu_to_be32
	str	x0, [x22, #56]
	mov	w0, #80
	bl	_cpu_to_be32
	str	x0, [x22, #48]
	ldrsw	x0, [x19, #4]
	bl	_cpu_to_be32
	str	x0, [x22, #40]
	ldrsw	x8, [x19]
	lsl	x8, x8, #2
	add	x0, x8, #80
	bl	_cpu_to_be32
	str	x0, [x22, #32]
	mov	x0, x26
	bl	_cpu_to_be32
	str	x0, [x22, #24]
	mov	x0, x25
	bl	_cpu_to_be32
	str	x0, [x22, #16]
	add	x24, x22, #80
	ldrsw	x8, [x19]
	lsl	x25, x8, #2
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x26, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #64]
	ldr	x9, [x9, x26, lsl #3]
	cbz	x9, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x9]
	bl	_cpu_to_be64
	str	w0, [x24, x26, lsl #2]
	ldr	w8, [x19]
	b	LBB0_15
LBB0_18:
	add	x24, x24, x25
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x26, #0
	add	x9, x22, x25
	add	x25, x9, #80
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x26, x26, #1
	sxtw	x9, w8
	cmp	x26, x9
	b.ge	LBB0_24
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	ldr	x9, [x9, x26, lsl #3]
	cbz	x9, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w0, [x9]
	bl	_cpu_to_be64
	str	w0, [x25, x26, lsl #2]
	ldr	w8, [x19, #4]
	b	LBB0_20
LBB0_23:
	sxtw	x9, w8
LBB0_24:
	add	x24, x24, x9, lsl #2
	sub	x0, x24, x22
	bl	_cpu_to_be32
	str	x0, [x22, #8]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x22]
	mov	x0, x19
	mov	x1, x24
	bl	_vnic_add_client_data
	ldr	w0, [x19, #48]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_dbg
	mov	x23, #0
Lloh21:
	adrp	x22, l_.str.4@PAGE
Lloh22:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #48]
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x23, lsl #3]
	str	x8, [sp]
	mov	x1, x22
	bl	_netdev_dbg
	ldr	x8, [x19, #16]
	sub	x8, x8, #1
	cmp	x23, x8, lsr #3
	add	x23, x23, #1
	b.lo	LBB0_25
; %bb.26:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh23:
	adrp	x8, _IBMVNIC_CRQ_CMD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IBMVNIC_CRQ_CMD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _LOGIN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LOGIN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibmvnic_send_crq
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX or TX queues are not allocated, device login failed\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't map login buffer\n"

	.comm	_IBMVNIC_TX_DESC_VERSIONS,4,2   ; @IBMVNIC_TX_DESC_VERSIONS
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't map login rsp buffer\n"

	.comm	_INITIAL_VERSION_LB,8,3         ; @INITIAL_VERSION_LB
l_.str.3:                               ; @.str.3
	.asciz	"Login Buffer:\n"

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

	.comm	_IBMVNIC_CRQ_CMD,4,2            ; @IBMVNIC_CRQ_CMD
	.comm	_LOGIN,4,2                      ; @LOGIN
	.no_dead_strip	_send_login
.subsections_via_symbols
