	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ISurf_card_msg
_ISurf_card_msg:                        ## @ISurf_card_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$131, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_ISURF_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reset_isurf
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_ISURF_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reset_isurf
	movq	%rbx, %rdi
	callq	_clear_pending_isac_ints
	movq	_ISAR_IRQBIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writeb
	xorl	%eax, %eax
	callq	_mb
	movq	%rbx, %rdi
	callq	_initisac
	movq	%rbx, %rdi
	callq	_initisar
	movq	_ISAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*8(%rbx)
	movq	_ISAC_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	callq	*8(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_release_io_isurf
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISURF_RESET,4,2                ## @ISURF_RESET
	.comm	_ISAR_IRQBIT,8,3                ## @ISAR_IRQBIT
	.comm	_ISAC_MASK,4,2                  ## @ISAC_MASK
	.comm	_ISAC_CMDR,4,2                  ## @ISAC_CMDR
	.no_dead_strip	_ISurf_card_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ISurf_card_msg
_ISurf_card_msg:                        ; @ISurf_card_msg
	.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
	cmp	w1, #131
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ISURF_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISURF_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reset_isurf
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _ISURF_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISURF_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reset_isurf
	mov	x0, x19
	bl	_clear_pending_isac_ints
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _ISAR_IRQBIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISAR_IRQBIT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	bl	_mb
	mov	x0, x19
	bl	_initisac
	mov	x0, x19
	bl	_initisar
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _ISAC_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISAC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _ISAC_CMDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISAC_CMDR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #65
	blr	x8
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_release_io_isurf
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISURF_RESET,4,2                ; @ISURF_RESET
	.comm	_ISAR_IRQBIT,8,3                ; @ISAR_IRQBIT
	.comm	_ISAC_MASK,4,2                  ; @ISAC_MASK
	.comm	_ISAC_CMDR,4,2                  ; @ISAC_CMDR
	.no_dead_strip	_ISurf_card_msg
.subsections_via_symbols
