	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icside_maskproc
_icside_maskproc:                       ## @icside_maskproc
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	4(%rbx), %edi
	callq	_ECARD_DEV
	movq	%rax, %rdi
	callq	_ecard_get_drvdata
	movq	%rax, %r15
	callq	_local_irq_save
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %r14
	addq	$8, %r14
	movq	_ICS_ARCIN_V6_INTROFFSET_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movq	_ICS_ARCIN_V6_INTROFFSET_2@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %r14
	addq	$8, %r14
	movq	_ICS_ARCIN_V6_INTROFFSET_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readb
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %r14
	addq	$8, %r14
	movq	_ICS_ARCIN_V6_INTROFFSET_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writeb
LBB0_7:
	movq	_ICS_ARCIN_V6_INTROFFSET_1@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readb
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICS_ARCIN_V6_INTROFFSET_1,8,3  ## @ICS_ARCIN_V6_INTROFFSET_1
	.comm	_ICS_ARCIN_V6_INTROFFSET_2,8,3  ## @ICS_ARCIN_V6_INTROFFSET_2
	.no_dead_strip	_icside_maskproc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icside_maskproc
_icside_maskproc:                       ; @icside_maskproc
	.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	x20, x1
	ldr	x21, [x0]
	ldr	w0, [x21, #4]
	bl	_ECARD_DEV
	bl	_ecard_get_drvdata
	mov	x19, x0
	bl	_local_irq_save
	ldr	w8, [x21]
	str	w8, [x19]
	cbnz	w20, LBB0_5
; %bb.1:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_5
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]!
Lloh0:
	adrp	x9, _ICS_ARCIN_V6_INTROFFSET_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICS_ARCIN_V6_INTROFFSET_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
Lloh3:
	adrp	x8, _ICS_ARCIN_V6_INTROFFSET_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICS_ARCIN_V6_INTROFFSET_2@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #8]!
Lloh5:
	adrp	x9, _ICS_ARCIN_V6_INTROFFSET_2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICS_ARCIN_V6_INTROFFSET_2@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readb
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]!
Lloh8:
	adrp	x9, _ICS_ARCIN_V6_INTROFFSET_2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICS_ARCIN_V6_INTROFFSET_2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
LBB0_7:
Lloh11:
	adrp	x8, _ICS_ARCIN_V6_INTROFFSET_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICS_ARCIN_V6_INTROFFSET_1@GOTPAGEOFF]
LBB0_8:
	ldr	x9, [x19]
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_readb
LBB0_9:
	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
	b	_local_irq_restore
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ICS_ARCIN_V6_INTROFFSET_1,8,3  ; @ICS_ARCIN_V6_INTROFFSET_1
	.comm	_ICS_ARCIN_V6_INTROFFSET_2,8,3  ; @ICS_ARCIN_V6_INTROFFSET_2
	.no_dead_strip	_icside_maskproc
.subsections_via_symbols
