	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scx200_acb_probe
_scx200_acb_probe:                      ## @scx200_acb_probe
	.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	_ACBCTL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$112, %edi
	callq	_outb
	movl	(%rbx), %edi
	callq	_inb
	cmpl	$112, %eax
	jne	LBB0_1
## %bb.2:
	movq	_ACBCTL1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_inb
	movq	_ACBCTL1_NMINTE@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_outb
	movl	(%r15), %edi
	callq	_inb
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %edi
	callq	_inb
	movq	_ACBCTL2_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_outb
	movl	(%r15), %edi
	callq	_inb
	orl	(%r14), %eax
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_outb
	movl	(%r15), %edi
	callq	_inb
	movl	%eax, %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%r14)
	je	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACBCTL2,4,2                    ## @ACBCTL2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACBCTL2 readback failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ACBCTL1,4,2                    ## @ACBCTL1
	.comm	_ACBCTL1_NMINTE,4,2             ## @ACBCTL1_NMINTE
L_.str.1:                               ## @.str.1
	.asciz	"disabled, but ACBCTL1=0x%02x\n"

	.comm	_ACBCTL2_ENABLE,4,2             ## @ACBCTL2_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"enabled, but NMINTE won't be set, ACBCTL1=0x%02x\n"

	.no_dead_strip	_scx200_acb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scx200_acb_probe
_scx200_acb_probe:                      ; @scx200_acb_probe
	.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, _ACBCTL2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ACBCTL2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #112
	bl	_outb
	ldr	w0, [x21]
	bl	_inb
	cmp	w0, #112
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x19, _ACBCTL1@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ACBCTL1@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_inb
Lloh4:
	adrp	x20, _ACBCTL1_NMINTE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ACBCTL1_NMINTE@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w0, w8, w0
	ldr	w1, [x19]
	bl	_outb
	ldr	w0, [x19]
	bl	_inb
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.2:
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_pr_debug
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x21]
	bl	_inb
Lloh13:
	adrp	x8, _ACBCTL2_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACBCTL2_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x21]
	bl	_outb
	ldr	w0, [x19]
	bl	_inb
	ldr	w8, [x20]
	orr	w0, w8, w0
	ldr	w1, [x19]
	bl	_outb
	ldr	w0, [x19]
	bl	_inb
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20]
	bics	wzr, w8, w0
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_5
LBB0_8:
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ACBCTL2,4,2                    ; @ACBCTL2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACBCTL2 readback failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ACBCTL1,4,2                    ; @ACBCTL1
	.comm	_ACBCTL1_NMINTE,4,2             ; @ACBCTL1_NMINTE
l_.str.1:                               ; @.str.1
	.asciz	"disabled, but ACBCTL1=0x%02x\n"

	.comm	_ACBCTL2_ENABLE,4,2             ; @ACBCTL2_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"enabled, but NMINTE won't be set, ACBCTL1=0x%02x\n"

	.no_dead_strip	_scx200_acb_probe
.subsections_via_symbols
