	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_link_state
_set_link_state:                        ## @set_link_state
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movl	$30000, %edi                    ## imm = 0x7530
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_netdev_dbg
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_IBMVNIC_CRQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_LOGICAL_LINK_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	%ebx, -64(%rbp)
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	%r12, %rdi
	leaq	-64(%rbp), %rsi
	callq	_ibmvnic_send_crq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ebx
	cmpl	$1, %ebx
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_mdelay
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ibmvnic_send_crq
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_netdev_warn
	movl	(%r12), %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	movl	$-1, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting link state %d\n"

	.comm	_IBMVNIC_CRQ_CMD,4,2            ## @IBMVNIC_CRQ_CMD
	.comm	_LOGICAL_LINK_STATE,4,2         ## @LOGICAL_LINK_STATE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set link state\n"

L_.str.2:                               ## @.str.2
	.asciz	"timeout setting link state\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to set link state, rc=%d\n"

	.no_dead_strip	_set_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_link_state
_set_link_state:                        ; @set_link_state
	.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	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	w0, #30000
	bl	_msecs_to_jiffies
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_dbg
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh2:
	adrp	x8, _IBMVNIC_CRQ_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IBMVNIC_CRQ_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _LOGICAL_LINK_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOGICAL_LINK_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w22, w8, [sp]
	add	x22, x20, #4
	mov	x0, x22
	bl	_reinit_completion
	mov	x1, sp
	mov	x0, x20
	bl	_ibmvnic_send_crq
	mov	x23, x0
	cbz	w0, LBB0_4
LBB0_1:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_2:
	mov	x0, x23
	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
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1000
	bl	_mdelay
	mov	x0, x22
	bl	_reinit_completion
	mov	x1, sp
	mov	x0, x20
	bl	_ibmvnic_send_crq
	cbnz	w0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x20]
	cmp	w23, #1
	b.eq	LBB0_3
; %bb.6:
	cbz	w23, LBB0_2
; %bb.7:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_netdev_warn
	ldr	w23, [x20]
	b	LBB0_2
LBB0_8:
	mov	x23, x0
	b	LBB0_1
LBB0_9:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	w23, #-1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting link state %d\n"

	.comm	_IBMVNIC_CRQ_CMD,4,2            ; @IBMVNIC_CRQ_CMD
	.comm	_LOGICAL_LINK_STATE,4,2         ; @LOGICAL_LINK_STATE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set link state\n"

l_.str.2:                               ; @.str.2
	.asciz	"timeout setting link state\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to set link state, rc=%d\n"

	.no_dead_strip	_set_link_state
.subsections_via_symbols
