	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3flash_kernel_write
_ps3flash_kernel_write:                 ## @ps3flash_kernel_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rsi
	movl	%edx, -12(%rbp)
	leaq	-12(%rbp), %rcx
	xorl	%edi, %edi
	movq	%rax, %rdx
	callq	_ps3flash_write
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	_ps3flash_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ps3flash_writeback
	testl	%eax, %eax
	cltq
	cmovneq	%rax, %rbx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ps3flash_dev,4,2               ## @ps3flash_dev
	.no_dead_strip	_ps3flash_kernel_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3flash_kernel_write
_ps3flash_kernel_write:                 ; @ps3flash_kernel_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x1, x0
	str	w2, [sp, #12]
	add	x3, sp, #12
	mov	x0, #0
	mov	x2, x8
	bl	_ps3flash_write
	mov	x19, x0
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ps3flash_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ps3flash_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ps3flash_writeback
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	w0, #0
	csel	x19, x19, x8, eq
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ps3flash_dev,4,2               ; @ps3flash_dev
	.no_dead_strip	_ps3flash_kernel_write
.subsections_via_symbols
