	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attach_by_scanning
_attach_by_scanning:                    ## @attach_by_scanning
	.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
	movq	%rdi, %rbx
	callq	_ubi_scan
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %rcx
	subq	%rax, %rcx
	movq	%rcx, 32(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ubi_read_volume_table
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ubi_wl_init_scan
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ubi_eba_init_scan
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ubi_wl_close
LBB0_6:
	movq	%rbx, %rdi
	callq	_free_internal_volumes
	movl	(%rbx), %edi
	callq	_vfree
LBB0_7:
	movq	%r14, %rdi
	callq	_ubi_scan_destroy_si
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_ubi_scan_destroy_si
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_attach_by_scanning
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attach_by_scanning
_attach_by_scanning:                    ; @attach_by_scanning
	.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	x20, x0
	bl	_ubi_scan
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, 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
	b	_PTR_ERR
LBB0_2:
	ldr	x8, [x19, #8]
	str	x8, [x20, #16]
	ldr	x9, [x20, #24]
	sub	x8, x9, x8
	str	x8, [x20, #32]
	ldr	d0, [x19]
	stur	d0, [x20, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_ubi_read_volume_table
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_ubi_wl_init_scan
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_ubi_eba_init_scan
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_ubi_wl_close
LBB0_6:
	mov	x0, x20
	bl	_free_internal_volumes
	ldr	w0, [x20]
	bl	_vfree
LBB0_7:
	mov	x0, x19
	bl	_ubi_scan_destroy_si
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_attach_by_scanning
.subsections_via_symbols
