	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_open_volume_path           ## -- Begin function ubi_open_volume_path
	.p2align	4, 0x90
_ubi_open_volume_path:                  ## @ubi_open_volume_path
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_dbg_gen
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_15
## %bb.2:
	movq	_LOOKUP_FOLLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_kern_path
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	jmp	LBB0_13
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	_STATX_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AT_STATX_SYNC_AS_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r15
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vfs_getattr
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_path_put
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	jmp	LBB0_13
LBB0_6:
	movl	-28(%rbp), %edi
	callq	_S_ISCHR
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	-32(%rbp), %edi
	callq	_MAJOR
	movl	%eax, %edi
	callq	_ubi_major2num
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	callq	_MINOR
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.10:
	decl	%eax
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_ubi_open_volume
	jmp	LBB0_14
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_13:
	callq	_ERR_PTR
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open volume %s, mode %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LOOKUP_FOLLOW,4,2              ## @LOOKUP_FOLLOW
	.comm	_STATX_TYPE,4,2                 ## @STATX_TYPE
	.comm	_AT_STATX_SYNC_AS_STAT,4,2      ## @AT_STATX_SYNC_AS_STAT
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_open_volume_path           ; -- Begin function ubi_open_volume_path
	.p2align	2
_ubi_open_volume_path:                  ; @ubi_open_volume_path
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_dbg_gen
	cbz	x20, LBB0_5
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _LOOKUP_FOLLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOOKUP_FOLLOW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_kern_path
	cbnz	w0, LBB0_13
; %bb.3:
Lloh5:
	adrp	x8, _STATX_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATX_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _AT_STATX_SYNC_AS_STAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AT_STATX_SYNC_AS_STAT@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, sp
	bl	_vfs_getattr
	mov	x20, x0
	add	x0, sp, #8
	bl	_path_put
	cbz	w20, LBB0_6
; %bb.4:
	mov	x0, x20
	b	LBB0_13
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ERR_PTR
LBB0_6:
	ldr	w0, [sp, #4]
	bl	_S_ISCHR
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w0, [sp]
	bl	_MAJOR
	bl	_ubi_major2num
	mov	x20, x0
	ldr	w0, [sp]
	bl	_MINOR
	subs	w1, w0, #1
	b.lt	LBB0_11
; %bb.8:
	tbnz	w20, #31, LBB0_11
; %bb.9:
	mov	x0, x20
	mov	x2, x19
	bl	_ubi_open_volume
	b	LBB0_14
LBB0_10:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	bl	_ERR_PTR
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open volume %s, mode %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LOOKUP_FOLLOW,4,2              ; @LOOKUP_FOLLOW
	.comm	_STATX_TYPE,4,2                 ; @STATX_TYPE
	.comm	_AT_STATX_SYNC_AS_STAT,4,2      ; @AT_STATX_SYNC_AS_STAT
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
