	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecap_sernum
_ecap_sernum:                           ## @ecap_sernum
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_printf
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	_PCIR_SERIAL_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r12, %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %ebx
	movq	_PCIR_SERIAL_HIGH@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$4, %ecx
	callq	_read_config
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Serial %d"

	.comm	_PCIR_SERIAL_LOW,8,3            ## @PCIR_SERIAL_LOW
	.comm	_PCIR_SERIAL_HIGH,8,3           ## @PCIR_SERIAL_HIGH
L_.str.1:                               ## @.str.1
	.asciz	" %08x%08x\n"

	.no_dead_strip	_ecap_sernum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecap_sernum
_ecap_sernum:                           ; @ecap_sernum
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x3
	bl	_printf
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PCIR_SERIAL_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCIR_SERIAL_LOW@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x22, x0
Lloh5:
	adrp	x8, _PCIR_SERIAL_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIR_SERIAL_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x2, x8, x21
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4
	bl	_read_config
	mov	x1, x0
	str	x22, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_2:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Serial %d"

	.comm	_PCIR_SERIAL_LOW,8,3            ; @PCIR_SERIAL_LOW
	.comm	_PCIR_SERIAL_HIGH,8,3           ; @PCIR_SERIAL_HIGH
l_.str.1:                               ; @.str.1
	.asciz	" %08x%08x\n"

	.no_dead_strip	_ecap_sernum
.subsections_via_symbols
