	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_valid
_dev_valid:                             ## @dev_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edi, %edi
	js	LBB0_3
## %bb.1:
	movq	_UB_MAX_DEV@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_3
## %bb.2:
	movq	_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rcx
	movq	_DEV_STA_OPEN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_MAX_DEV,4,2                 ## @UB_MAX_DEV
	.comm	_devices,8,3                    ## @devices
	.comm	_DEV_STA_OPEN,8,3               ## @DEV_STA_OPEN
	.no_dead_strip	_dev_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_valid
_dev_valid:                             ; @dev_valid
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #0
	tbnz	w8, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _UB_MAX_DEV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UB_MAX_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _devices@GOTPAGE
Lloh4:
	ldr	x9, [x9, _devices@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, uxtw #3]
Lloh6:
	adrp	x9, _DEV_STA_OPEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEV_STA_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_MAX_DEV,4,2                 ; @UB_MAX_DEV
	.comm	_devices,8,3                    ; @devices
	.comm	_DEV_STA_OPEN,8,3               ; @DEV_STA_OPEN
	.no_dead_strip	_dev_valid
.subsections_via_symbols
