	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_is_compatible_hw_id
_malidp_is_compatible_hw_id:            ## @malidp_is_compatible_hw_id
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MALIDP500_DC_BASE@GOTPCREL(%rip), %rax
	movq	_MALIDP_DE_CORE_ID@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%rax), %rsi
	callq	_malidp_hw_read
	movl	%eax, %edi
	callq	_MALIDP_PRODUCT_ID
	movl	%eax, %ebx
	cmpl	$1280, %eax                     ## imm = 0x500
	sete	%r14b
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strnstr
	testq	%rax, %rax
	setne	%cl
	cmpb	%cl, %r14b
	je	LBB0_2
## %bb.1:
	cmpl	$1280, %ebx                     ## imm = 0x500
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_5
LBB0_2:
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_MALIDP550_DC_BASE@GOTPCREL(%rip), %rax
	movq	(%r13), %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_malidp_hw_read
	movl	%eax, %edi
	callq	_MALIDP_PRODUCT_ID
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movl	$32, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strnstr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arm,mali-dp500"

	.comm	_MALIDP500_DC_BASE,8,3          ## @MALIDP500_DC_BASE
	.comm	_MALIDP_DE_CORE_ID,8,3          ## @MALIDP_DE_CORE_ID
L_.str.1:                               ## @.str.1
	.asciz	"Device-tree expects %s, but hardware %s DP500.\n"

L_.str.2:                               ## @.str.2
	.asciz	"is"

L_.str.3:                               ## @.str.3
	.asciz	"is not"

	.comm	_MALIDP550_DC_BASE,8,3          ## @MALIDP550_DC_BASE
L_.str.4:                               ## @.str.4
	.asciz	"arm,mali-dp%X"

L_.str.5:                               ## @.str.5
	.asciz	"Device-tree expects %s, but hardware is DP%03X.\n"

	.no_dead_strip	_malidp_is_compatible_hw_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_is_compatible_hw_id
_malidp_is_compatible_hw_id:            ; @malidp_is_compatible_hw_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MALIDP500_DC_BASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MALIDP500_DC_BASE@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x22, _MALIDP_DE_CORE_ID@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MALIDP_DE_CORE_ID@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_malidp_hw_read
	bl	_MALIDP_PRODUCT_ID
	mov	x21, x0
	cmp	w0, #1280
	cset	w23, eq
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strnstr
	cmp	x0, #0
	cset	w8, ne
	cmp	w23, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w1, [x19]
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #1280
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:
	bl	_DRM_ERROR
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	cbnz	x0, LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _MALIDP550_DC_BASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MALIDP550_DC_BASE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_malidp_hw_read
	bl	_MALIDP_PRODUCT_ID
	mov	x20, x0
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w1, #32
	mov	x3, x20
	bl	_snprintf
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #4
	bl	_strnstr
	cbz	x0, LBB0_8
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldr	x8, [sp, #40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	w1, [x19]
	str	x20, [sp]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arm,mali-dp500"

	.comm	_MALIDP500_DC_BASE,8,3          ; @MALIDP500_DC_BASE
	.comm	_MALIDP_DE_CORE_ID,8,3          ; @MALIDP_DE_CORE_ID
l_.str.1:                               ; @.str.1
	.asciz	"Device-tree expects %s, but hardware %s DP500.\n"

l_.str.2:                               ; @.str.2
	.asciz	"is"

l_.str.3:                               ; @.str.3
	.asciz	"is not"

	.comm	_MALIDP550_DC_BASE,8,3          ; @MALIDP550_DC_BASE
l_.str.4:                               ; @.str.4
	.asciz	"arm,mali-dp%X"

l_.str.5:                               ; @.str.5
	.asciz	"Device-tree expects %s, but hardware is DP%03X.\n"

	.no_dead_strip	_malidp_is_compatible_hw_id
.subsections_via_symbols
