	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pc8736x_superio_present
_pc8736x_superio_present:               ## @pc8736x_superio_present
	.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
	movq	_SIO_BASE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_superio_cmd@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_SIO_SID@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_superio_inb
	movq	_SIO_SID_PC87365@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_2
## %bb.1:
	movq	_SIO_SID_PC87366@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_2
## %bb.3:
	movq	_SIO_BASE2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %edi
	callq	_superio_inb
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	(%r12), %ecx
	movl	(%rbx), %edx
	cmovel	%edx, %eax
	cmpl	(%r14), %ecx
	cmovel	%edx, %eax
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_BASE1,4,2                  ## @SIO_BASE1
	.comm	_superio_cmd,4,2                ## @superio_cmd
	.comm	_SIO_SID,4,2                    ## @SIO_SID
	.comm	_SIO_SID_PC87365,4,2            ## @SIO_SID_PC87365
	.comm	_SIO_SID_PC87366,4,2            ## @SIO_SID_PC87366
	.comm	_SIO_BASE2,4,2                  ## @SIO_BASE2
	.no_dead_strip	_pc8736x_superio_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pc8736x_superio_present
_pc8736x_superio_present:               ; @pc8736x_superio_present
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, _SIO_BASE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_BASE1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _superio_cmd@GOTPAGE
Lloh4:
	ldr	x19, [x19, _superio_cmd@GOTPAGEOFF]
	str	w8, [x19]
Lloh5:
	adrp	x20, _SIO_SID@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SIO_SID@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_superio_inb
Lloh7:
	adrp	x21, _SIO_SID_PC87365@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SIO_SID_PC87365@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh9:
	adrp	x22, _SIO_SID_PC87366@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SIO_SID_PC87366@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _SIO_BASE2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIO_BASE2@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w0, [x20]
	bl	_superio_inb
	ldr	w8, [x21]
	ldr	w9, [x22]
	cmp	w0, w9
	ccmp	w0, w8, #4, ne
	ldr	w8, [x19]
	csel	w0, w8, wzr, eq
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIO_BASE1,4,2                  ; @SIO_BASE1
	.comm	_superio_cmd,4,2                ; @superio_cmd
	.comm	_SIO_SID,4,2                    ; @SIO_SID
	.comm	_SIO_SID_PC87365,4,2            ; @SIO_SID_PC87365
	.comm	_SIO_SID_PC87366,4,2            ; @SIO_SID_PC87366
	.comm	_SIO_BASE2,4,2                  ; @SIO_BASE2
	.no_dead_strip	_pc8736x_superio_present
.subsections_via_symbols
