	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_identify_announce_soc
_aml8726_identify_announce_soc:         ## @aml8726_identify_announce_soc
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_aml8726_soc_desc@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	movq	_aml8726_soc_hw_rev@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	je	LBB0_1
## %bb.2:
	leaq	16(%rax), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, -8(%rcx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	$0, (%rcx)
	leaq	16(%rcx), %rcx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_panic
	movq	(%r15), %rax
LBB0_6:
	movl	%ebx, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rax
	movq	_AML_SOC_HW_REV_M8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:
	movq	_aml8726_m8_soc_rev@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	_aml8726_soc_metal_rev@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	cmpl	%esi, 8(%rcx)
	je	LBB0_12
## %bb.9:
	addq	$24, %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	16(%rcx), %rdx
	cmpl	%esi, (%rcx)
	movq	%rdx, %rcx
	jne	LBB0_10
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_13:
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putchar                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_aml8726_soc_desc,8,3           ## @aml8726_soc_desc
	.comm	_aml8726_soc_hw_rev,8,3         ## @aml8726_soc_hw_rev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Amlogic unknown aml8726 SoC %#x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Amlogic %s SoC"

	.comm	_AML_SOC_HW_REV_M8,8,3          ## @AML_SOC_HW_REV_M8
	.comm	_aml8726_m8_soc_rev,8,3         ## @aml8726_m8_soc_rev
	.comm	_aml8726_soc_metal_rev,4,2      ## @aml8726_soc_metal_rev
L_.str.2:                               ## @.str.2
	.asciz	", unknown rev %#x"

L_.str.3:                               ## @.str.3
	.asciz	", rev %s"

	.no_dead_strip	_aml8726_identify_announce_soc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_identify_announce_soc
_aml8726_identify_announce_soc:         ; @aml8726_identify_announce_soc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x21, _aml8726_soc_desc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _aml8726_soc_desc@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
Lloh2:
	adrp	x19, _aml8726_soc_hw_rev@GOTPAGE
Lloh3:
	ldr	x19, [x19, _aml8726_soc_hw_rev@GOTPAGEOFF]
	ldr	x1, [x19]
	mov	x20, #0
	cbz	x9, LBB0_4
; %bb.1:
	add	x9, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldr	x10, [x9], #16
	cbnz	x10, LBB0_2
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	ldr	x8, [x21]
LBB0_5:
	and	x9, x20, #0xffffffff
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _AML_SOC_HW_REV_M8@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AML_SOC_HW_REV_M8@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.6:
Lloh11:
	adrp	x8, _aml8726_m8_soc_rev@GOTPAGE
Lloh12:
	ldr	x8, [x8, _aml8726_m8_soc_rev@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x8]
	ldr	x9, [x10]
Lloh14:
	adrp	x8, _aml8726_soc_metal_rev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _aml8726_soc_metal_rev@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	x9, LBB0_12
; %bb.7:
	ldr	w11, [x10, #8]
	cmp	w11, w8
	b.eq	LBB0_11
; %bb.8:
	add	x10, x10, #24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x10, #-8]
	cbz	x9, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x10], #16
	cmp	w11, w8
	b.ne	LBB0_9
LBB0_11:
	str	x9, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_printf
LBB0_14:
	mov	w0, #10
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_putchar
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_aml8726_soc_desc,8,3           ; @aml8726_soc_desc
	.comm	_aml8726_soc_hw_rev,8,3         ; @aml8726_soc_hw_rev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Amlogic unknown aml8726 SoC %#x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Amlogic %s SoC"

	.comm	_AML_SOC_HW_REV_M8,8,3          ; @AML_SOC_HW_REV_M8
	.comm	_aml8726_m8_soc_rev,8,3         ; @aml8726_m8_soc_rev
	.comm	_aml8726_soc_metal_rev,4,2      ; @aml8726_soc_metal_rev
l_.str.2:                               ; @.str.2
	.asciz	", unknown rev %#x"

l_.str.3:                               ; @.str.3
	.asciz	", rev %s"

	.no_dead_strip	_aml8726_identify_announce_soc
.subsections_via_symbols
