	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shmob_drm_probe
_shmob_drm_probe:                       ## @shmob_drm_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r13
	movq	%r12, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	8(%r13), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_7:
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_shmob_drm_setup_clocks
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	movq	%r13, %rdi
	callq	_shmob_drm_init_interface
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	_shmob_drm_driver@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_drm_dev_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_14:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_15:
	movq	%r14, (%r13)
	movq	%r13, (%r14)
	movq	%r13, %rdi
	callq	_shmob_drm_modeset_init
	testl	%eax, %eax
	js	LBB0_26
## %bb.16:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_shmob_drm_plane_create
	testl	%eax, %eax
	js	LBB0_24
## %bb.17:
	movl	$1, %ebx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_shmob_drm_plane_create
	testl	%eax, %eax
	js	LBB0_24
## %bb.18:
	movl	$2, %ebx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_shmob_drm_plane_create
	testl	%eax, %eax
	js	LBB0_24
## %bb.19:
	movl	$3, %ebx
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_shmob_drm_plane_create
	testl	%eax, %eax
	js	LBB0_24
## %bb.20:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_drm_vblank_init
	testl	%eax, %eax
	js	LBB0_28
## %bb.21:
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_drm_irq_install
	testl	%eax, %eax
	js	LBB0_29
## %bb.22:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	testl	%eax, %eax
	jns	LBB0_8
## %bb.23:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_drm_irq_uninstall
	jmp	LBB0_30
LBB0_24:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_25:
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_fini
	movq	%r14, %rdi
	callq	_drm_mode_config_cleanup
	jmp	LBB0_27
LBB0_26:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movq	%r14, %rdi
	callq	_drm_dev_put
	jmp	LBB0_8
LBB0_28:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_25
LBB0_29:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_30:
	movl	%ebx, %r15d
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_shmob_drm_driver,4,2           ## @shmob_drm_driver
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize mode setting\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to create plane %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to initialize vblank\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to install IRQ handler\n"

	.no_dead_strip	_shmob_drm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shmob_drm_probe
_shmob_drm_probe:                       ; @shmob_drm_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	stp	x20, x19, [x0, #24]
	add	x0, x0, #16
	bl	_spin_lock_init
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x22, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x22, #8]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w1, [x20]
	mov	x0, x22
	bl	_shmob_drm_setup_clocks
	tbnz	w0, #31, LBB0_13
; %bb.10:
	mov	x0, x22
	bl	_shmob_drm_init_interface
	tbnz	w0, #31, LBB0_13
; %bb.11:
Lloh12:
	adrp	x0, _shmob_drm_driver@GOTPAGE
Lloh13:
	ldr	x0, [x0, _shmob_drm_driver@GOTPAGEOFF]
	mov	x1, x19
	bl	_drm_dev_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x20
	b	LBB0_4
LBB0_13:
	mov	x21, x0
	b	LBB0_8
LBB0_14:
	str	x20, [x22]
	str	x22, [x20]
	mov	x0, x22
	bl	_shmob_drm_modeset_init
	tbnz	w0, #31, LBB0_23
; %bb.15:
	mov	x0, x22
	mov	w1, #0
	bl	_shmob_drm_plane_create
	tbnz	w0, #31, LBB0_25
; %bb.16:
	mov	w23, #1
	mov	x0, x22
	mov	w1, #1
	bl	_shmob_drm_plane_create
	tbnz	w0, #31, LBB0_24
; %bb.17:
	mov	w23, #2
	mov	x0, x22
	mov	w1, #2
	bl	_shmob_drm_plane_create
	tbnz	w0, #31, LBB0_24
; %bb.18:
	mov	w23, #3
	mov	x0, x22
	mov	w1, #3
	bl	_shmob_drm_plane_create
	tbnz	w0, #31, LBB0_24
; %bb.19:
	mov	x0, x20
	mov	w1, #1
	bl	_drm_vblank_init
	tbnz	w0, #31, LBB0_30
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x20
	bl	_drm_irq_install
	tbnz	w0, #31, LBB0_31
; %bb.21:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dev_register
	mov	w21, #0
	tbz	w0, #31, LBB0_8
; %bb.22:
	mov	x19, x0
	mov	x0, x20
	bl	_drm_irq_uninstall
	mov	x21, x19
	b	LBB0_28
LBB0_23:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_29
LBB0_24:
	mov	x21, x0
	b	LBB0_26
LBB0_25:
	mov	x21, x0
	mov	w23, #0
LBB0_26:
	str	x23, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_dev_err
LBB0_28:
	mov	x0, x20
	bl	_drm_kms_helper_poll_fini
	mov	x0, x20
	bl	_drm_mode_config_cleanup
LBB0_29:
	mov	x0, x20
	bl	_drm_dev_put
	b	LBB0_8
LBB0_30:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_31:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_shmob_drm_driver,4,2           ; @shmob_drm_driver
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize mode setting\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to create plane %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to initialize vblank\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to install IRQ handler\n"

	.no_dead_strip	_shmob_drm_probe
.subsections_via_symbols
