	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function failover_store
_failover_store:                        ## @failover_store
	.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	%rcx, %r13
	movq	%rdx, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_PLPAR_HCALL_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_H_VIOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	_H_GET_SESSION_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subq	$8, %rsp
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_plpar_hcall
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_be64_to_cpu
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_dbg
	movq	_H_VIOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	_H_SESSION_ERR_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_plpar_hcall_norets
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_netdev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PLPAR_HCALL_BUFSIZE,4,2        ## @PLPAR_HCALL_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_H_VIOCTL,4,2                   ## @H_VIOCTL
	.comm	_H_GET_SESSION_TOKEN,4,2        ## @H_GET_SESSION_TOKEN
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't retrieve session token, rc %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"Initiating client failover, session id %llx\n"

	.comm	_H_SESSION_ERR_DETECTED,4,2     ## @H_SESSION_ERR_DETECTED
L_.str.3:                               ## @.str.3
	.asciz	"Client initiated failover failed, rc %ld\n"

	.no_dead_strip	_failover_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function failover_store
_failover_store:                        ; @failover_store
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x3
	mov	x23, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh3:
	adrp	x8, _PLPAR_HCALL_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLPAR_HCALL_BUFSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_sysfs_streq
	cbz	w0, LBB0_6
; %bb.1:
Lloh10:
	adrp	x23, _H_VIOCTL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _H_VIOCTL@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x21]
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _H_GET_SESSION_TOKEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _H_GET_SESSION_TOKEN@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x1, x22
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_plpar_hcall
	cbz	x0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	x22, [x22]
	mov	x0, x22
	bl	_be64_to_cpu
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	w0, [x23]
	ldr	x8, [x21]
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _H_SESSION_ERR_DETECTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _H_SESSION_ERR_DETECTED@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x3, x22
	mov	w4, #0
	mov	w5, #0
	bl	_plpar_hcall_norets
	cbz	x0, LBB0_7
; %bb.4:
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_netdev_err
LBB0_6:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PLPAR_HCALL_BUFSIZE,4,2        ; @PLPAR_HCALL_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_H_VIOCTL,4,2                   ; @H_VIOCTL
	.comm	_H_GET_SESSION_TOKEN,4,2        ; @H_GET_SESSION_TOKEN
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't retrieve session token, rc %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"Initiating client failover, session id %llx\n"

	.comm	_H_SESSION_ERR_DETECTED,4,2     ; @H_SESSION_ERR_DETECTED
l_.str.3:                               ; @.str.3
	.asciz	"Client initiated failover failed, rc %ld\n"

	.no_dead_strip	_failover_store
.subsections_via_symbols
