	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_get_frontend_path         ## -- Begin function iwdp_get_frontend_path
	.p2align	4, 0x90
_iwdp_get_frontend_path:                ## @iwdp_get_frontend_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IWDP_ERROR@GOTPCREL(%rip), %r12
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	$0, (%rdx)
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.2:
	movq	%rsi, %rbx
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r13
	incq	%rax
	testq	%r13, %r13
	cmoveq	%r13, %rax
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%r14, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$-1, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	11(%rbx,%r13), %eax
	incq	%r13
	cmpb	$47, %al
	je	LBB0_5
## %bb.6:
	addq	$10, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movzbl	1(%rbx,%r13), %eax
	incq	%r13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	andb	$-33, %dl
	addb	$-65, %dl
	leal	-48(%rax), %ecx
	cmpb	$26, %dl
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$10, %cl
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testb	%al, %al
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbl	%al, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_strnstr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:
	testq	%r13, %r13
	jne	LBB0_16
## %bb.14:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
LBB0_16:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmovel	%eax, %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	movq	%rbx, %r9
	callq	_asprintf
	testq	%rax, %rax
	jns	LBB0_17
## %bb.18:
	movq	_IWDP_ERROR@GOTPCREL(%rip), %r12
	jmp	LBB0_19
LBB0_17:
	movq	_IWDP_SUCCESS@GOTPCREL(%rip), %r12
LBB0_19:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWDP_ERROR,4,2                 ## @IWDP_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/devtools/"

L_.str.1:                               ## @.str.1
	.asciz	"-./_"

L_.str.2:                               ## @.str.2
	.asciz	".."

L_.str.3:                               ## @.str.3
	.asciz	"%.*s%.*s"

	.comm	_IWDP_SUCCESS,4,2               ## @IWDP_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_get_frontend_path         ; -- Begin function iwdp_get_frontend_path
	.p2align	2
_iwdp_get_frontend_path:                ; @iwdp_get_frontend_path
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x2, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	str	xzr, [x2]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x1
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x22, xzr, x0, eq
	cbz	x23, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #10
	bl	_strncmp
	cbz	x0, LBB0_6
LBB0_4:
Lloh2:
	adrp	x27, _IWDP_ERROR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _IWDP_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x27]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x26, #0
	sub	x25, x22, x19
	add	x9, x23, #10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x9, x26]
	add	x26, x26, #1
	cmp	w8, #47
	b.eq	LBB0_7
; %bb.8:
	add	x23, x23, #10
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x23, x26]
	add	x26, x26, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w9, w8, #0xffffffdf
	sub	w9, w9, #65
	and	w9, w9, #0xff
	sub	w10, w8, #48
	cmp	w9, #26
	and	w9, w10, #0xff
	ccmp	w9, #10, #0, hs
	b.lo	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	tst	w8, #0xff
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	sxtb	w1, w8
	mov	x0, x24
	bl	_strchr
	cbnz	x0, LBB0_9
LBB0_13:
	sub	x24, x26, #1
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_strnstr
Lloh8:
	adrp	x27, _IWDP_ERROR@GOTPAGE
Lloh9:
	ldr	x27, [x27, _IWDP_ERROR@GOTPAGEOFF]
	cbnz	x0, LBB0_5
; %bb.14:
	cmp	x26, #1
	b.ne	LBB0_17
; %bb.15:
	cbz	x21, LBB0_17
; %bb.16:
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	mov	x23, x22
LBB0_17:
	cmp	x21, #0
	csel	w2, w25, wzr, ne
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	bl	_asprintf
Lloh12:
	adrp	x8, _IWDP_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWDP_SUCCESS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x27, x27, x8, lt
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IWDP_ERROR,4,2                 ; @IWDP_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/devtools/"

l_.str.1:                               ; @.str.1
	.asciz	"-./_"

l_.str.2:                               ; @.str.2
	.asciz	".."

l_.str.3:                               ; @.str.3
	.asciz	"%.*s%.*s"

	.comm	_IWDP_SUCCESS,4,2               ; @IWDP_SUCCESS
.subsections_via_symbols
