	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_open                       ## -- Begin function dev_open
	.p2align	4, 0x90
_dev_open:                              ## @dev_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DEV_BLOCK@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_block_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_char_devs@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movslq	%edi, %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rcx, %rdx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movq	__ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_BLOCK,4,2                  ## @DEV_BLOCK
	.comm	_block_devs,8,3                 ## @block_devs
	.comm	_char_devs,8,3                  ## @char_devs
	.comm	__ENXIO,4,2                     ## @_ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_open                       ; -- Begin function dev_open
	.p2align	2
_dev_open:                              ; @dev_open
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DEV_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_BLOCK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _block_devs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _block_devs@GOTPAGEOFF]
Lloh4:
	adrp	x10, _char_devs@GOTPAGE
Lloh5:
	ldr	x10, [x10, _char_devs@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w2
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x4, [x8], #8
	str	x8, [x3]
	cbz	x4, LBB0_4
; %bb.2:
	mov	x2, x3
	br	x4
LBB0_3:
Lloh7:
	adrp	x8, __ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, __ENXIO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_BLOCK,4,2                  ; @DEV_BLOCK
	.comm	_block_devs,8,3                 ; @block_devs
	.comm	_char_devs,8,3                  ; @char_devs
	.comm	__ENXIO,4,2                     ; @_ENXIO
.subsections_via_symbols
