	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ubi_dbg_is_erase_failure
_ubi_dbg_is_erase_failure:              ## @ubi_dbg_is_erase_failure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_prandom_u32
	imull	$-1030792151, %eax, %ecx        ## imm = 0xC28F5C29
	addl	$85899344, %ecx                 ## imm = 0x51EB850
	rorl	$4, %ecx
	xorl	%eax, %eax
	cmpl	$10737419, %ecx                 ## imm = 0xA3D70B
	setb	%al
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ubi_dbg_is_erase_failure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ubi_dbg_is_erase_failure
_ubi_dbg_is_erase_failure:              ; @ubi_dbg_is_erase_failure
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_prandom_u32
	mov	w8, #23593
	movk	w8, #49807, lsl #16
	mov	w9, #47184
	movk	w9, #1310, lsl #16
	madd	w8, w0, w8, w9
	ror	w8, w8, #4
	mov	w9, #55051
	movk	w9, #163, lsl #16
	cmp	w8, w9
	cset	w0, lo
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ubi_dbg_is_erase_failure
.subsections_via_symbols
