	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_login
_ibmvnic_login:                         ## @ibmvnic_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$30000, %edi                    ## imm = 0x7530
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movq	%rbx, %r12
	addq	$12, %r12
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r14d
	movq	_IBMVNIC_MAX_QUEUES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rbx)
	movq	%r12, %rdi
	callq	_reinit_completion
	movq	%rbx, %rdi
	callq	_send_login
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	_PARTIALSUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_release_sub_crqs
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_dbg
	movq	$0, (%rbx)
	movq	%r12, %rdi
	callq	_reinit_completion
	movq	%rbx, %rdi
	callq	_send_cap_queries
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_init_sub_crqs
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_init_sub_crq_irqs
	testl	%eax, %eax
	je	LBB0_1
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_warn
	jmp	LBB0_18
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_15:
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_warn
	movl	$-1, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	8(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___ibmvnic_set_mac
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMVNIC_MAX_QUEUES,4,2         ## @IBMVNIC_MAX_QUEUES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Login attempts exceeded\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to login\n"

L_.str.2:                               ## @.str.2
	.asciz	"Login timed out\n"

	.comm	_PARTIALSUCCESS,8,3             ## @PARTIALSUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"Received partial success, retrying...\n"

L_.str.4:                               ## @.str.4
	.asciz	"Capabilities query timed out\n"

L_.str.5:                               ## @.str.5
	.asciz	"SCRQ initialization failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"SCRQ irq initialization failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"Adapter login failed\n"

	.no_dead_strip	_ibmvnic_login
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvnic_login
_ibmvnic_login:                         ; @ibmvnic_login
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_netdev_priv
	mov	x20, x0
	mov	w0, #30000
	bl	_msecs_to_jiffies
	mov	x21, x0
	add	x22, x20, #12
	mov	w25, #-1
Lloh0:
	adrp	x26, _IBMVNIC_MAX_QUEUES@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IBMVNIC_MAX_QUEUES@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PARTIALSUCCESS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PARTIALSUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str.3@PAGE
Lloh5:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	add	w25, w25, #1
	cmp	w25, w8
	b.gt	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x20]
	mov	x0, x22
	bl	_reinit_completion
	mov	x0, x20
	bl	_send_login
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_release_sub_crqs
	mov	x0, x19
	mov	x1, x23
	bl	_netdev_dbg
	str	xzr, [x20]
	mov	x0, x22
	bl	_reinit_completion
	mov	x0, x20
	bl	_send_cap_queries
	mov	x0, x22
	mov	x1, x21
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_init_sub_crqs
	cbnz	w0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_init_sub_crq_irqs
	cbz	w0, LBB0_1
; %bb.8:
Lloh6:
	adrp	x1, l_.str.6@PAGE
Lloh7:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_10:
	mov	x24, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	b	LBB0_17
LBB0_11:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_12:
	cbz	x8, LBB0_18
; %bb.13:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_netdev_warn
	mov	w24, #-1
LBB0_17:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	___ibmvnic_set_mac
	mov	w24, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMVNIC_MAX_QUEUES,4,2         ; @IBMVNIC_MAX_QUEUES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Login attempts exceeded\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to login\n"

l_.str.2:                               ; @.str.2
	.asciz	"Login timed out\n"

	.comm	_PARTIALSUCCESS,8,3             ; @PARTIALSUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"Received partial success, retrying...\n"

l_.str.4:                               ; @.str.4
	.asciz	"Capabilities query timed out\n"

l_.str.5:                               ; @.str.5
	.asciz	"SCRQ initialization failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"SCRQ irq initialization failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"Adapter login failed\n"

	.no_dead_strip	_ibmvnic_login
.subsections_via_symbols
