	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdevname
_getdevname:                            ## @getdevname
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_dirname
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_basename
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_strncmp
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	addq	$4, %r13
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_snprintf
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_snprintf
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_3:
	movl	$-1, %r15d
	movq	%r14, %rbx
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ugen"

L_.str.1:                               ## @.str.1
	.asciz	"%s/usb/%s.1"

L_.str.2:                               ## @.str.2
	.asciz	"%s/usb/%s.2"

	.no_dead_strip	_getdevname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdevname
_getdevname:                            ; @getdevname
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_strdup
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_dirname
	mov	x23, x0
	mov	x0, x20
	bl	_strdup
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_basename
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.3:
	mov	w21, #-1
	b	LBB0_7
LBB0_4:
	mov	w21, #-1
	b	LBB0_9
LBB0_5:
	mov	w21, #-1
	mov	x20, x19
	b	LBB0_8
LBB0_6:
	add	x24, x24, #4
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w1, #256
	mov	x3, x23
	mov	x4, x24
	bl	_snprintf
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w1, #256
	mov	x3, x23
	mov	x4, x24
	bl	_snprintf
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	x0, x20
	bl	_free
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ugen"

l_.str.1:                               ; @.str.1
	.asciz	"%s/usb/%s.1"

l_.str.2:                               ; @.str.2
	.asciz	"%s/usb/%s.2"

	.no_dead_strip	_getdevname
.subsections_via_symbols
