	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sysfs_minor_alloc          ## -- Begin function drm_sysfs_minor_alloc
	.p2align	4, 0x90
_drm_sysfs_minor_alloc:                 ## @drm_sysfs_minor_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_DRM_MINOR_RENDER@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	%r12, %r15
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	movq	%rbx, %rdi
	callq	_device_initialize
	movq	_DRM_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_MKDEV
	movl	%eax, 20(%rbx)
	movq	_drm_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_drm_sysfs_device_minor@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_drm_sysfs_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dev_set_name
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_put_device
LBB0_4:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MINOR_RENDER,8,3           ## @DRM_MINOR_RENDER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"renderD%d"

L_.str.1:                               ## @.str.1
	.asciz	"card%d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_MAJOR,4,2                  ## @DRM_MAJOR
	.comm	_drm_class,4,2                  ## @drm_class
	.comm	_drm_sysfs_device_minor,4,2     ## @drm_sysfs_device_minor
	.comm	_drm_sysfs_release,4,2          ## @drm_sysfs_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sysfs_minor_alloc          ; -- Begin function drm_sysfs_minor_alloc
	.p2align	2
_drm_sysfs_minor_alloc:                 ; @drm_sysfs_minor_alloc
	.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
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _DRM_MINOR_RENDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MINOR_RENDER@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str@PAGE
Lloh9:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x21, x22
	csel	x21, x9, x8, eq
	bl	_device_initialize
Lloh10:
	adrp	x8, _DRM_MAJOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MAJOR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_MKDEV
Lloh13:
	adrp	x8, _drm_class@GOTPAGE
Lloh14:
	ldr	x8, [x8, _drm_class@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #16]
Lloh16:
	adrp	x8, _drm_sysfs_device_minor@GOTPAGE
Lloh17:
	ldr	x8, [x8, _drm_sysfs_device_minor@GOTPAGEOFF]
	str	x8, [x19, #8]
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _drm_sysfs_release@GOTPAGE
Lloh19:
	ldr	x9, [x9, _drm_sysfs_release@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_name
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	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_3:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_put_device
LBB0_5:
	mov	x0, x20
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MINOR_RENDER,8,3           ; @DRM_MINOR_RENDER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"renderD%d"

l_.str.1:                               ; @.str.1
	.asciz	"card%d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_MAJOR,4,2                  ; @DRM_MAJOR
	.comm	_drm_class,4,2                  ; @drm_class
	.comm	_drm_sysfs_device_minor,4,2     ; @drm_sysfs_device_minor
	.comm	_drm_sysfs_release,4,2          ; @drm_sysfs_release
.subsections_via_symbols
