	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is31fl32xx_software_shutdown
_is31fl32xx_software_shutdown:          ## @is31fl32xx_software_shutdown
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	(%r15), %rsi
	movq	_IS31FL32XX_REG_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_IS31FL32XX_SHUTDOWN_SSD_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IS31FL32XX_SHUTDOWN_SSD_ENABLE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_is31fl32xx_write
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IS31FL32XX_REG_NONE,8,3        ## @IS31FL32XX_REG_NONE
	.comm	_IS31FL32XX_SHUTDOWN_SSD_ENABLE,4,2 ## @IS31FL32XX_SHUTDOWN_SSD_ENABLE
	.comm	_IS31FL32XX_SHUTDOWN_SSD_DISABLE,4,2 ## @IS31FL32XX_SHUTDOWN_SSD_DISABLE
	.no_dead_strip	_is31fl32xx_software_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is31fl32xx_software_shutdown
_is31fl32xx_software_shutdown:          ; @is31fl32xx_software_shutdown
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x1, [x21]
Lloh0:
	adrp	x8, _IS31FL32XX_REG_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS31FL32XX_REG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IS31FL32XX_SHUTDOWN_SSD_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IS31FL32XX_SHUTDOWN_SSD_ENABLE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IS31FL32XX_SHUTDOWN_SSD_DISABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IS31FL32XX_SHUTDOWN_SSD_DISABLE@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_is31fl32xx_write
	cbnz	w0, LBB0_5
LBB0_2:
	ldr	x2, [x21, #8]
	cbz	x2, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IS31FL32XX_REG_NONE,8,3        ; @IS31FL32XX_REG_NONE
	.comm	_IS31FL32XX_SHUTDOWN_SSD_ENABLE,4,2 ; @IS31FL32XX_SHUTDOWN_SSD_ENABLE
	.comm	_IS31FL32XX_SHUTDOWN_SSD_DISABLE,4,2 ; @IS31FL32XX_SHUTDOWN_SSD_DISABLE
	.no_dead_strip	_is31fl32xx_software_shutdown
.subsections_via_symbols
