	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ergo_stopcard
_ergo_stopcard:                         ## @ergo_stopcard
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_hysdn_net_release
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_PCI9050_INTR_REG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%rbx), %rdi
	callq	_bytein
	movq	_PCI9050_INTR_REG_ENPCI@GOTPCREL(%rip), %rcx
	movq	_PCI9050_INTR_REG_EN1@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	orb	(%rcx), %dl
	notb	%dl
	andb	%al, %dl
	movq	(%r14), %rdi
	addq	16(%rbx), %rdi
	movzbl	%dl, %esi
	callq	_byteout
	movq	$0, 24(%rbx)
	movq	_PCI9050_USER_IO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	movq	_PCI9050_E1_RESET@GOTPCREL(%rip), %rax
	movzbl	(%rax), %esi
	callq	_byteout
	movq	_CARD_STATE_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ERRLOG_STATE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI9050_INTR_REG,8,3           ## @PCI9050_INTR_REG
	.comm	_PCI9050_INTR_REG_ENPCI,1,0     ## @PCI9050_INTR_REG_ENPCI
	.comm	_PCI9050_INTR_REG_EN1,1,0       ## @PCI9050_INTR_REG_EN1
	.comm	_PCI9050_USER_IO,8,3            ## @PCI9050_USER_IO
	.comm	_PCI9050_E1_RESET,1,0           ## @PCI9050_E1_RESET
	.comm	_CARD_STATE_UNUSED,4,2          ## @CARD_STATE_UNUSED
	.comm	_ERRLOG_STATE_OFF,4,2           ## @ERRLOG_STATE_OFF
	.no_dead_strip	_ergo_stopcard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ergo_stopcard
_ergo_stopcard:                         ; @ergo_stopcard
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_hysdn_net_release
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _PCI9050_INTR_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI9050_INTR_REG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_bytein
Lloh2:
	adrp	x8, _PCI9050_INTR_REG_ENPCI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI9050_INTR_REG_ENPCI@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, _PCI9050_INTR_REG_EN1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PCI9050_INTR_REG_EN1@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
	eor	w8, w8, #0xff
	and	w1, w0, w8
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_byteout
	str	xzr, [x19, #24]
Lloh6:
	adrp	x8, _PCI9050_USER_IO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI9050_USER_IO@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh9:
	adrp	x8, _PCI9050_E1_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI9050_E1_RESET@GOTPAGEOFF]
	ldrb	w1, [x8]
	bl	_byteout
Lloh11:
	adrp	x8, _CARD_STATE_UNUSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CARD_STATE_UNUSED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ERRLOG_STATE_OFF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ERRLOG_STATE_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI9050_INTR_REG,8,3           ; @PCI9050_INTR_REG
	.comm	_PCI9050_INTR_REG_ENPCI,1,0     ; @PCI9050_INTR_REG_ENPCI
	.comm	_PCI9050_INTR_REG_EN1,1,0       ; @PCI9050_INTR_REG_EN1
	.comm	_PCI9050_USER_IO,8,3            ; @PCI9050_USER_IO
	.comm	_PCI9050_E1_RESET,1,0           ; @PCI9050_E1_RESET
	.comm	_CARD_STATE_UNUSED,4,2          ; @CARD_STATE_UNUSED
	.comm	_ERRLOG_STATE_OFF,4,2           ; @ERRLOG_STATE_OFF
	.no_dead_strip	_ergo_stopcard
.subsections_via_symbols
