	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serial_show
_serial_show:                           ## @serial_show
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_SM_CHIP_ID_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r15), %esi
	movq	_SM_GET_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_meson_sm_call_read
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	movq	_SM_CHIP_ID_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movl	(%rbx,%rsi,4), %edx
	movl	4(%rbx,%rsi,4), %ecx
	movl	8(%rbx,%rsi,4), %r8d
	movl	12(%rbx,%rsi,4), %r9d
	movl	16(%rbx,%rsi,4), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	20(%rbx,%rsi,4), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rbx,%rsi,4), %r15d
	movl	28(%rbx,%rsi,4), %r12d
	movl	32(%rbx,%rsi,4), %r13d
	movl	36(%rbx,%rsi,4), %eax
	movl	40(%rbx,%rsi,4), %r10d
	movl	44(%rbx,%rsi,4), %r11d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	pushq	%r11
	pushq	%r10
	pushq	%rax
	pushq	%r13
	pushq	%r12
	pushq	%r15
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_sprintf
	addq	$64, %rsp
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	movl	%r15d, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM_CHIP_ID_LENGTH,4,2          ## @SM_CHIP_ID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SM_GET_CHIP_ID,4,2             ## @SM_GET_CHIP_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n"

	.comm	_SM_CHIP_ID_OFFSET,4,2          ## @SM_CHIP_ID_OFFSET
	.no_dead_strip	_serial_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serial_show
_serial_show:                           ; @serial_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
Lloh0:
	adrp	x21, _SM_CHIP_ID_LENGTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SM_CHIP_ID_LENGTH@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _SM_GET_CHIP_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SM_GET_CHIP_ID@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_meson_sm_call_read
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _SM_CHIP_ID_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SM_CHIP_ID_OFFSET@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	ldr	w2, [x19, x8, lsl #2]
	add	w9, w8, #1
	ldr	w3, [x19, w9, sxtw #2]
	add	w9, w8, #2
	ldr	w4, [x19, w9, sxtw #2]
	add	w9, w8, #3
	ldr	w5, [x19, w9, sxtw #2]
	add	w9, w8, #4
	ldr	w6, [x19, w9, sxtw #2]
	add	w9, w8, #5
	ldr	w7, [x19, w9, sxtw #2]
	add	w9, w8, #6
	ldr	w9, [x19, w9, sxtw #2]
	add	w10, w8, #7
	ldr	w10, [x19, w10, sxtw #2]
	add	w11, w8, #8
	ldr	w11, [x19, w11, sxtw #2]
	add	w12, w8, #9
	ldr	w12, [x19, w12, sxtw #2]
	add	w13, w8, #10
	ldr	w13, [x19, w13, sxtw #2]
	add	w8, w8, #11
	ldr	w8, [x19, w8, sxtw #2]
	stp	w13, w8, [sp, #16]
	stp	w11, w12, [sp, #8]
	stp	w9, w10, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	bl	_kfree
LBB0_5:
	mov	x0, x21
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SM_CHIP_ID_LENGTH,4,2          ; @SM_CHIP_ID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SM_GET_CHIP_ID,4,2             ; @SM_GET_CHIP_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n"

	.comm	_SM_CHIP_ID_OFFSET,4,2          ; @SM_CHIP_ID_OFFSET
	.no_dead_strip	_serial_show
.subsections_via_symbols
