	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shmob_drm_connector_create     ## -- Begin function shmob_drm_connector_create
	.p2align	4, 0x90
_shmob_drm_connector_create:            ## @shmob_drm_connector_create
	.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	%rsi, %r15
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%rsi, (%rdi)
	movq	24(%rdi), %rdi
	movq	32(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_connector_helper_add
	movq	%rbx, %rdi
	callq	_shmob_drm_backlight_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_attach_encoder
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_drm_helper_connector_dpms
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_drm_object_property_set_value
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_shmob_drm_backlight_exit
LBB0_7:
	movq	%r14, %rdi
	callq	_drm_connector_cleanup
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_funcs,4,2            ## @connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_connector_helper_funcs,4,2     ## @connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shmob_drm_connector_create     ; -- Begin function shmob_drm_connector_create
	.p2align	2
_shmob_drm_connector_create:            ; @shmob_drm_connector_create
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	str	x1, [x0]
	ldp	x0, x8, [x0, #24]
	ldr	d0, [x8]
	stur	d0, [x20, #12]
Lloh0:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _connector_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _connector_funcs@GOTPAGEOFF]
	mov	x1, x19
	bl	_drm_connector_init
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh5:
	adrp	x1, _connector_helper_funcs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_connector_helper_add
	mov	x0, x20
	bl	_shmob_drm_backlight_init
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_connector_attach_encoder
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh7:
	adrp	x21, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh8:
	ldr	x21, [x21, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_drm_helper_connector_dpms
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_drm_object_property_set_value
	mov	w22, #0
	b	LBB0_8
LBB0_4:
	mov	x22, x0
	b	LBB0_8
LBB0_5:
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	mov	x0, x20
	bl	_shmob_drm_backlight_exit
LBB0_7:
	mov	x0, x19
	bl	_drm_connector_cleanup
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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_funcs,4,2            ; @connector_funcs
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_connector_helper_funcs,4,2     ; @connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
.subsections_via_symbols
