	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_sig
_check_sig:                             ## @check_sig
	.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, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	andl	$-256, %eax
	cmpl	$13056, %eax                    ## imm = 0x3300
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outw
	movl	$55, %edi
	callq	_mdelay
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_IO_DATA_PATH_WIDTH_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_CONFIG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	_CFG_16BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ecx
	orl	%eax, %ecx
	notl	%edi
	andl	%eax, %edi
	cmpq	%r12, %r14
	cmovel	%ecx, %edi
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movl	%eax, %r13d
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	andl	$-256, %eax
	cmpl	$13056, %eax                    ## imm = 0x3300
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %eax
	sarl	$8, %eax
	movzbl	%r13b, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r12, %r14
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movq	%r15, %rdi
	callq	_smc91c92_suspend
	movq	%r15, %rdi
	callq	_pcmcia_fixup_iowidth
	movq	%r15, %rdi
	callq	_smc91c92_resume
	jmp	LBB0_1
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	movl	$3, %edi
	callq	_SMC_SELECT_BANK
	movq	_REVISION@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inw
	movzbl	%al, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BANK_SELECT,8,3                ## @BANK_SELECT
	.comm	_CONTROL,8,3                    ## @CONTROL
	.comm	_IO_DATA_PATH_WIDTH_AUTO,8,3    ## @IO_DATA_PATH_WIDTH_AUTO
	.comm	_CONFIG,8,3                     ## @CONFIG
	.comm	_CFG_16BIT,4,2                  ## @CFG_16BIT
	.comm	_BASE_ADDR,8,3                  ## @BASE_ADDR
	.comm	_REVISION,8,3                   ## @REVISION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using 8-bit IO window\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_check_sig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_sig
_check_sig:                             ; @check_sig
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x23, _BANK_SELECT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BANK_SELECT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CONFIG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CONFIG@GOTPAGEOFF]
Lloh4:
	adrp	x26, _CFG_16BIT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CFG_16BIT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _BASE_ADDR@GOTPAGE
Lloh7:
	ldr	x27, [x27, _BASE_ADDR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #8]
	ldr	w28, [x21]
	mov	w0, #1
	bl	_SMC_SELECT_BANK
	ldr	x8, [x23]
	add	x0, x8, x28
	bl	_inw
	lsr	w8, w0, #8
	cmp	w8, #51
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh8:
	adrp	x8, _CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONTROL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x28
	mov	w0, #0
	bl	_outw
	mov	w0, #55
	bl	_mdelay
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh11:
	adrp	x8, _IO_DATA_PATH_WIDTH_AUTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IO_DATA_PATH_WIDTH_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	x24, [x8]
	ldr	x8, [x25]
	add	x0, x8, x28
	bl	_inb
	ldr	w8, [x26]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	x20, x24
	csel	w0, w9, w8, eq
	ldr	x8, [x25]
	add	x1, x8, x28
	bl	_outb
	ldr	x8, [x27]
	add	x0, x8, x28
	bl	_inw
	mov	x22, x0
	ldr	x8, [x23]
	add	x0, x8, x28
	bl	_inw
	lsr	w8, w0, #8
	cmp	w8, #51
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	asr	w8, w22, #8
	cmp	w8, w22, uxtb
	b.ne	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x20, x24
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
	mov	x0, x19
	bl	_smc91c92_suspend
	mov	x0, x19
	bl	_pcmcia_fixup_iowidth
	mov	x0, x19
	bl	_smc91c92_resume
	b	LBB0_1
LBB0_7:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #3
	bl	_SMC_SELECT_BANK
Lloh19:
	adrp	x8, _REVISION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REVISION@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x0, x8, x28
	bl	_inw
	and	w0, w0, #0xff
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BANK_SELECT,8,3                ; @BANK_SELECT
	.comm	_CONTROL,8,3                    ; @CONTROL
	.comm	_IO_DATA_PATH_WIDTH_AUTO,8,3    ; @IO_DATA_PATH_WIDTH_AUTO
	.comm	_CONFIG,8,3                     ; @CONFIG
	.comm	_CFG_16BIT,4,2                  ; @CFG_16BIT
	.comm	_BASE_ADDR,8,3                  ; @BASE_ADDR
	.comm	_REVISION,8,3                   ; @REVISION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using 8-bit IO window\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_check_sig
.subsections_via_symbols
