	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemtek_probe
_gemtek_probe:                          ## @gemtek_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	%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
	movl	%esi, %ebx
	movl	%esi, %edi
	callq	_inb_p
	movl	%eax, %r14d
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_outb_p
	movq	_SHORT_DELAY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_inb_p
	movq	_GEMTEK_NS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	xorl	%r15d, %r15d
	cmpl	$55, %ecx
	jne	LBB0_4
## %bb.1:
	movl	$2, %edi
	movl	%ebx, %esi
	callq	_outb_p
	movl	(%r12), %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_inb_p
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	cmpl	$87, %ecx
	jne	LBB0_4
## %bb.2:
	movl	$4, %edi
	movl	%ebx, %esi
	callq	_outb_p
	movl	(%r12), %edi
	callq	_udelay
	movl	%ebx, %edi
	callq	_inb_p
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	cmpl	$151, %ecx
	jne	LBB0_4
## %bb.3:
	sarl	$5, %r14d
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_outb_p
	movl	(%r12), %edi
	callq	_udelay
	movl	$1, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHORT_DELAY,4,2                ## @SHORT_DELAY
	.comm	_GEMTEK_NS,4,2                  ## @GEMTEK_NS
	.no_dead_strip	_gemtek_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemtek_probe
_gemtek_probe:                          ; @gemtek_probe
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_inb_p
	mov	x20, x0
	mov	w0, #1
	mov	x1, x19
	bl	_outb_p
Lloh0:
	adrp	x21, _SHORT_DELAY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SHORT_DELAY@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_udelay
	mov	x0, x19
	bl	_inb_p
Lloh2:
	adrp	x22, _GEMTEK_NS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GEMTEK_NS@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w8, w0, w8
	cmp	w8, #55
	b.ne	LBB0_4
; %bb.1:
	mov	w0, #2
	mov	x1, x19
	bl	_outb_p
	ldr	w0, [x21]
	bl	_udelay
	mov	x0, x19
	bl	_inb_p
	ldr	w8, [x22]
	bic	w8, w0, w8
	cmp	w8, #87
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #4
	mov	x1, x19
	bl	_outb_p
	ldr	w0, [x21]
	bl	_udelay
	mov	x0, x19
	bl	_inb_p
	ldr	w8, [x22]
	bic	w8, w0, w8
	cmp	w8, #151
	b.ne	LBB0_4
; %bb.3:
	asr	w0, w20, #5
	mov	x1, x19
	bl	_outb_p
	ldr	w0, [x21]
	bl	_udelay
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SHORT_DELAY,4,2                ; @SHORT_DELAY
	.comm	_GEMTEK_NS,4,2                  ; @GEMTEK_NS
	.no_dead_strip	_gemtek_probe
.subsections_via_symbols
