	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_client_init                ## -- Begin function drm_client_init
	.p2align	4, 0x90
_drm_client_init:                       ## @drm_client_init
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movl	(%r14), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r12, 16(%r15)
	movq	%rbx, (%r15)
	movq	%r14, 8(%r15)
	movq	%r15, %rdi
	callq	_drm_client_modeset_create
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	testq	%r14, %r14
	jne	LBB0_12
	jmp	LBB0_13
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_drm_client_open
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_drm_client_modeset_free
	testq	%r14, %r14
	je	LBB0_13
LBB0_12:
	movl	(%r14), %edi
	callq	_module_put
	jmp	LBB0_13
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	%r12, %rdi
	callq	_drm_dev_get
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_client_init                ; -- Begin function drm_client_init
	.p2align	2
_drm_client_init:                       ; @drm_client_init
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_try_module_get
	cbz	w0, LBB0_12
LBB0_4:
	stp	x19, x21, [x20, #8]
	str	x22, [x20]
	mov	x0, x20
	bl	_drm_client_modeset_create
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.5:
	cbnz	x19, LBB0_11
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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_9:
	mov	x0, x20
	bl	_drm_client_open
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_drm_client_modeset_free
	cbz	x19, LBB0_8
LBB0_11:
	ldr	w0, [x19]
	bl	_module_put
	b	LBB0_8
LBB0_12:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_13:
	mov	x0, x21
	bl	_drm_dev_get
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
