	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdswap_handle_write_error
_mtdswap_handle_write_error:            ## @mtdswap_handle_write_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r8d
	movq	_EBLOCK_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	8(%rdi), %rdx
	movl	%eax, %ecx
	orl	%r8d, %ecx
	movl	%ecx, (%rsi)
	cmpq	%rsi, %rdx
	jne	LBB0_4
## %bb.1:
	movq	$0, 8(%rdi)
	testl	%r8d, %eax
	je	LBB0_2
LBB0_4:
	popq	%rbp
	jmp	_mtdswap_handle_badblock        ## TAILCALL
LBB0_2:
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	_MTDSWAP_FAILING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mtdswap_rb_add
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBLOCK_FAILED,4,2              ## @EBLOCK_FAILED
	.comm	_MTDSWAP_FAILING,4,2            ## @MTDSWAP_FAILING
	.no_dead_strip	_mtdswap_handle_write_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdswap_handle_write_error
_mtdswap_handle_write_error:            ; @mtdswap_handle_write_error
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x9, _EBLOCK_FAILED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EBLOCK_FAILED@GOTPAGEOFF]
	ldr	w8, [x1]
Lloh2:
	ldr	w9, [x9]
	ldr	x10, [x0, #8]
	orr	w11, w9, w8
	str	w11, [x1]
	cmp	x10, x1
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x0, #8]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mtdswap_handle_badblock
LBB0_3:
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.4:
Lloh3:
	adrp	x8, _MTDSWAP_FAILING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTDSWAP_FAILING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_mtdswap_rb_add
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBLOCK_FAILED,4,2              ; @EBLOCK_FAILED
	.comm	_MTDSWAP_FAILING,4,2            ; @MTDSWAP_FAILING
	.no_dead_strip	_mtdswap_handle_write_error
.subsections_via_symbols
