	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVM_card_msg
_AVM_card_msg:                          ## @AVM_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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	%rbx, %rdi
	callq	_reset_avmpcipnp
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_reset_avmpcipnp
	movq	%rbx, %rdi
	callq	_clear_pending_isac_ints
	movq	%rbx, %rdi
	callq	_initisac
	movq	%rbx, %rdi
	callq	_inithdlc
	movq	_AVM_STATUS0_DIS_TIMER@GOTPCREL(%rip), %r14
	movq	_AVM_STATUS0_RES_TIMER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	orl	(%r14), %edi
	movl	4(%rbx), %esi
	addl	$2, %esi
	callq	_outb
	movq	_ISAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WriteISAC
	movl	(%r15), %edi
	orl	(%r14), %edi
	movq	_AVM_STATUS0_ENA_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	4(%rbx), %esi
	addl	$2, %esi
	callq	_outb
	movq	_ISAC_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	callq	_WriteISAC
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_7
LBB0_4:
	movl	4(%rbx), %esi
	addl	$2, %esi
	xorl	%edi, %edi
	callq	_outb
	movl	4(%rbx), %edi
	movl	$32, %esi
	callq	_release_region
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_STATUS0_DIS_TIMER,4,2      ## @AVM_STATUS0_DIS_TIMER
	.comm	_AVM_STATUS0_RES_TIMER,4,2      ## @AVM_STATUS0_RES_TIMER
	.comm	_ISAC_MASK,4,2                  ## @ISAC_MASK
	.comm	_AVM_STATUS0_ENA_IRQ,4,2        ## @AVM_STATUS0_ENA_IRQ
	.comm	_ISAC_CMDR,4,2                  ## @ISAC_CMDR
	.no_dead_strip	_AVM_card_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVM_card_msg
_AVM_card_msg:                          ; @AVM_card_msg
	.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, 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
	mov	x0, x19
	bl	_reset_avmpcipnp
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_avmpcipnp
	mov	x0, x19
	bl	_clear_pending_isac_ints
	mov	x0, x19
	bl	_initisac
	mov	x0, x19
	bl	_inithdlc
Lloh0:
	adrp	x20, _AVM_STATUS0_DIS_TIMER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AVM_STATUS0_DIS_TIMER@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _AVM_STATUS0_RES_TIMER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AVM_STATUS0_RES_TIMER@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w0, w9, w8
	ldr	w8, [x19, #4]
	add	w1, w8, #2
	bl	_outb
Lloh4:
	adrp	x8, _ISAC_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISAC_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WriteISAC
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _AVM_STATUS0_ENA_IRQ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVM_STATUS0_ENA_IRQ@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w8, [x19, #4]
	add	w1, w8, #2
	bl	_outb
Lloh10:
	adrp	x8, _ISAC_CMDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISAC_CMDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65
	bl	_WriteISAC
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #4]
	add	w1, w8, #2
	mov	w0, #0
	bl	_outb
	ldr	w0, [x19, #4]
	mov	w1, #32
	bl	_release_region
LBB0_7:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVM_STATUS0_DIS_TIMER,4,2      ; @AVM_STATUS0_DIS_TIMER
	.comm	_AVM_STATUS0_RES_TIMER,4,2      ; @AVM_STATUS0_RES_TIMER
	.comm	_ISAC_MASK,4,2                  ; @ISAC_MASK
	.comm	_AVM_STATUS0_ENA_IRQ,4,2        ; @AVM_STATUS0_ENA_IRQ
	.comm	_ISAC_CMDR,4,2                  ; @ISAC_CMDR
	.no_dead_strip	_AVM_card_msg
.subsections_via_symbols
