	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_chipid
_find_chipid:                           ## @find_chipid
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_property_read_string_index
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_7
LBB0_1:
	movq	-40(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_4
LBB0_3:
	movl	-28(%rbp), %eax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	shrq	$37, %rcx
	movl	%ecx, (%r15)
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	imull	$205, %eax, %ecx
	movzwl	%cx, %ecx
	shrl	$11, %ecx
	movl	%ecx, 4(%r15)
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, 8(%r15)
	movl	-32(%rbp), %eax
	movl	%eax, 12(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	-28(%rbp), %eax
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
	shrl	$24, %eax
	movl	%eax, (%r15)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 4(%r15)
	movl	%edx, 8(%r15)
	movl	%esi, 12(%r15)
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	movl	8(%r15), %r8d
	movl	12(%r15), %r9d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compatible"

L_.str.1:                               ## @.str.1
	.asciz	"qcom,adreno-%u.%u"

L_.str.2:                               ## @.str.2
	.asciz	"amd,imageon-%u.%u"

L_.str.3:                               ## @.str.3
	.asciz	"qcom,chipid"

L_.str.4:                               ## @.str.4
	.asciz	"could not parse qcom,chipid: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Using legacy qcom,chipid binding!\n"

L_.str.6:                               ## @.str.6
	.asciz	"Use compatible qcom,adreno-%u%u%u.%u instead.\n"

	.no_dead_strip	_find_chipid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function find_chipid
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_find_chipid:                           ; @find_chipid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #40
	mov	x0, x21
	mov	w2, #0
	bl	_of_property_read_string_index
	cbz	w0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #36
	mov	x0, x21
	bl	_of_property_read_u32
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_DRM_DEV_ERROR
	b	LBB0_7
LBB0_3:
	ldr	x0, [sp, #40]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #36
	add	x3, sp, #32
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [sp, #40]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #36
	add	x3, sp, #32
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_1
LBB0_5:
	mov	w21, #0
	ldr	w8, [sp, #36]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #37
	mov	w10, #100
	msub	w8, w9, w10, w8
	and	w10, w8, #0xff
	mov	w11, #205
	mul	w10, w10, w11
	lsr	w10, w10, #11
	mov	w11, #10
	msub	w8, w10, w11, w8
	stp	w9, w10, [x19]
	ldr	w9, [sp, #32]
	and	w8, w8, #0xff
	stp	w8, w9, [x19, #8]
	b	LBB0_7
LBB0_6:
	ldr	w8, [sp, #36]
	lsr	w9, w8, #24
	str	w9, [x19]
	dup.2s	v0, w8
Lloh10:
	adrp	x9, lCPI0_0@PAGE
Lloh11:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x19, #4]
	and	w8, w8, #0xff
	str	w8, [x19, #12]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	ldp	w8, w9, [x19]
	ldp	w10, w11, [x19, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compatible"

l_.str.1:                               ; @.str.1
	.asciz	"qcom,adreno-%u.%u"

l_.str.2:                               ; @.str.2
	.asciz	"amd,imageon-%u.%u"

l_.str.3:                               ; @.str.3
	.asciz	"qcom,chipid"

l_.str.4:                               ; @.str.4
	.asciz	"could not parse qcom,chipid: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Using legacy qcom,chipid binding!\n"

l_.str.6:                               ; @.str.6
	.asciz	"Use compatible qcom,adreno-%u%u%u.%u instead.\n"

	.no_dead_strip	_find_chipid
.subsections_via_symbols
