	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdevtype
_getdevtype:                            ## @getdevtype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	-16(%rbp), %r8
	movl	$-1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_get_device_type
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-16(%rbp), %rax
	movq	_CC_DT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jae	LBB0_3
LBB0_2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_stdout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_devtype_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC_DT_UNKNOWN,4,2              ## @CC_DT_UNKNOWN
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_devtype_names,8,3              ## @devtype_names
	.no_dead_strip	_getdevtype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdevtype
_getdevtype:                            ; @getdevtype
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	add	x4, sp, #8
	mov	w1, #-1
	mov	w2, #0
	mov	w3, #0
	bl	_get_device_type
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _CC_DT_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CC_DT_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.hs	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _stdout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x9, _stdout@GOTPAGE
Lloh9:
	ldr	x9, [x9, _stdout@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
Lloh11:
	adrp	x9, _devtype_names@GOTPAGE
Lloh12:
	ldr	x9, [x9, _devtype_names@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CC_DT_UNKNOWN,4,2              ; @CC_DT_UNKNOWN
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_devtype_names,8,3              ; @devtype_names
	.no_dead_strip	_getdevtype
.subsections_via_symbols
