	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_dev_register               ## -- Begin function dyn_dev_register
	.p2align	4, 0x90
_dyn_dev_register:                      ## @dyn_dev_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.1:
	movl	%ecx, %ebx
	movq	_MAX_MINOR@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jl	LBB0_7
## %bb.2:
	movq	_DYN_DEV_MAJOR@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	movq	_DEV_CHAR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	_dyn_info_char@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_lock
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_10
## %bb.6:
	movq	_dyn_info_char@GOTPCREL(%rip), %rdi
	callq	_unlock
	movq	__EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	__EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, (%rax,%rcx,8)
	movq	_dyn_info_char@GOTPCREL(%rip), %rdi
	callq	_unlock
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MINOR,4,2                  ## @MAX_MINOR
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_DYN_DEV_MAJOR,4,2              ## @DYN_DEV_MAJOR
	.comm	_DEV_CHAR,4,2                   ## @DEV_CHAR
	.comm	_dyn_info_char,16,3             ## @dyn_info_char
	.comm	__EEXIST,4,2                    ## @_EEXIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_dev_register               ; -- Begin function dyn_dev_register
	.p2align	2
_dyn_dev_register:                      ; @dyn_dev_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	tbnz	w3, #31, LBB0_7
; %bb.1:
	mov	x19, x3
Lloh0:
	adrp	x8, _MAX_MINOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MINOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.lt	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _DYN_DEV_MAJOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DYN_DEV_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.3:
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _DEV_CHAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEV_CHAR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.5:
Lloh9:
	adrp	x21, _dyn_info_char@GOTPAGE
Lloh10:
	ldr	x21, [x21, _dyn_info_char@GOTPAGEOFF]
	mov	x0, x21
	bl	_lock
	ldr	x8, [x21, #8]
	ldr	x9, [x8, w19, uxtw #3]
	cbz	x9, LBB0_10
; %bb.6:
Lloh11:
	adrp	x0, _dyn_info_char@GOTPAGE
Lloh12:
	ldr	x0, [x0, _dyn_info_char@GOTPAGEOFF]
	bl	_unlock
Lloh13:
	adrp	x8, __EEXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, __EEXIST@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, __EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w9, w19
	str	x20, [x8, x9, lsl #3]
Lloh17:
	adrp	x0, _dyn_info_char@GOTPAGE
Lloh18:
	ldr	x0, [x0, _dyn_info_char@GOTPAGEOFF]
	bl	_unlock
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MINOR,4,2                  ; @MAX_MINOR
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_DYN_DEV_MAJOR,4,2              ; @DYN_DEV_MAJOR
	.comm	_DEV_CHAR,4,2                   ; @DEV_CHAR
	.comm	_dyn_info_char,16,3             ; @dyn_info_char
	.comm	__EEXIST,4,2                    ; @_EEXIST
.subsections_via_symbols
