	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_io_is_bad                  ## -- Begin function ubi_io_is_bad
	.p2align	4, 0x90
_ubi_io_is_bad:                         ## @ubi_io_is_bad
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	movl	$0, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	%r12d, (%rbx)
	setg	%dil
LBB0_2:
	movq	16(%rbx), %r15
	callq	_ubi_assert
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.3:
	movl	4(%rbx), %esi
	imull	%r12d, %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_dbg_io
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_ubi_err
LBB0_7:
	movl	%r15d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d while checking if PEB %d is bad"

L_.str.1:                               ## @.str.1
	.asciz	"PEB %d is bad"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_io_is_bad                  ; -- Begin function ubi_io_is_bad
	.p2align	2
_ubi_io_is_bad:                         ; @ubi_io_is_bad
	.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
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldr	x21, [x20, #16]
	bl	_ubi_assert
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	ldr	w9, [x20, #4]
	mul	w1, w9, w19
	mov	x0, x21
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.5:
	cbz	w20, LBB0_9
; %bb.6:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_dbg_io
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_ubi_err
LBB0_9:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d while checking if PEB %d is bad"

l_.str.1:                               ; @.str.1
	.asciz	"PEB %d is bad"

.subsections_via_symbols
