	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_serial                     ## -- Begin function get_serial
	.p2align	4, 0x90
_get_serial:                            ## @get_serial
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$9, %esi
	callq	_bzero
	xorl	%r12d, %r12d
	movl	$106, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%cl, %r12d
	movl	%r13d, %eax
	shrl	$3, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rax,4), %edx
	sarl	%edx
	shll	$7, %r14d
	orl	%edx, %r14d
	movl	%r14d, (%rsi,%rax,4)
	incl	%r13d
	cmpl	$72, %r13d
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_rd_port@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	3(,%rax,4), %edi
	callq	_inb
	movl	%eax, %ebx
	xorl	$85, %ebx
	movl	$250, %edi
	callq	_DELAY
	movl	(%r14), %eax
	leal	3(,%rax,4), %edi
	callq	_inb
	xorl	$170, %eax
	xorl	%r14d, %r14d
	orl	%ebx, %eax
	sete	%r14b
	movl	$250, %edi
	callq	_DELAY
	testl	%r12d, %r12d
	setne	%cl
	orb	%r14b, %cl
	cmpl	$63, %r13d
	ja	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %eax
	sarl	%eax
	xorl	%eax, %r15d
	xorl	%r14d, %r15d
	shll	$7, %r15d
	movzbl	%r15b, %r15d
	orl	%eax, %r15d
	jmp	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	testb	%cl, %cl
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%r15d, 32(%rcx)
	sete	%al
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rd_port,4,2                    ## @rd_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_serial                     ; -- Begin function get_serial
	.p2align	2
_get_serial:                            ; @get_serial
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	w1, #9
	bl	_bzero
	mov	w22, #0
	mov	w23, #0
	mov	w21, #106
Lloh0:
	adrp	x24, _rd_port@GOTPAGE
Lloh1:
	ldr	x24, [x24, _rd_port@GOTPAGEOFF]
	mov	w25, #85
	mov	w26, #128
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	mov	w0, #3
	bfi	w0, w8, #2, #30
	bl	_inb
	mov	x20, x0
	mov	w0, #250
	bl	_DELAY
	ldr	w8, [x24]
	mov	w0, #3
	bfi	w0, w8, #2, #30
	bl	_inb
	cmp	w0, #170
	ccmp	w20, w25, #0, eq
	cset	w20, eq
	mov	w0, #250
	bl	_DELAY
	cmp	w22, #0
	cset	w8, ne
	orr	w22, w8, w20
	asr	w8, w21, #1
	eor	w9, w8, w21
	eor	w9, w9, w20
	ubfiz	w9, w9, #7, #1
	orr	w8, w9, w8
	cmp	w23, #63
	csel	w21, w21, w8, hi
	lsr	w8, w23, #3
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	cmp	w20, #0
	csel	w10, w26, wzr, ne
	orr	w9, w10, w9, asr #1
	str	w9, [x19, x8]
	add	w23, w23, #1
	cmp	w23, #72
	b.ne	LBB0_1
; %bb.2:
	cbz	w22, LBB0_4
; %bb.3:
	ldr	w8, [x19, #32]
	cmp	w8, w21
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rd_port,4,2                    ; @rd_port
.subsections_via_symbols
