	.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_3
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_ASL0_OFFSET@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_byteout
	movq	_HZ@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$33, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	callq	_HZDELAY
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	movq	_ASL0_W_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_byteout
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$33, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	callq	_HZDELAY
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_byteout
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_ASL0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	movq	_ASL0_W_TDISABLE@GOTPCREL(%rip), %rax
	movq	_ASL0_W_TRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ASL0_W_IRQENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_byteout
	movq	%rbx, %rdi
	callq	_clear_pending_isac_ints
	movq	%rbx, %rdi
	callq	_clear_pending_hscx_ints
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_inithscxisac
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_inithscxisac
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASL0_OFFSET,8,3                ## @ASL0_OFFSET
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ASL0_W_RESET,4,2               ## @ASL0_W_RESET
	.comm	_ASL0_W_TDISABLE,4,2            ## @ASL0_W_TDISABLE
	.comm	_ASL0_W_TRESET,4,2              ## @ASL0_W_TRESET
	.comm	_ASL0_W_IRQENABLE,4,2           ## @ASL0_W_IRQENABLE
	.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_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _ASL0_OFFSET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ASL0_OFFSET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	mov	w1, #0
	bl	_byteout
Lloh2:
	adrp	x21, _HZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HZ@GOTPAGEOFF]
	ldrsw	x8, [x21]
	mov	w22, #26215
	movk	w22, #26214, lsl #16
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	add	w0, w8, #1
	bl	_HZDELAY
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
Lloh4:
	adrp	x8, _ASL0_W_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASL0_W_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_byteout
	ldrsw	x8, [x21]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	add	w0, w8, #1
	bl	_HZDELAY
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	mov	w1, #0
	bl	_byteout
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _ASL0_OFFSET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ASL0_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8
Lloh10:
	adrp	x8, _ASL0_W_TDISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ASL0_W_TDISABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ASL0_W_TRESET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ASL0_W_TRESET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _ASL0_W_IRQENABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ASL0_W_IRQENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_byteout
	mov	x0, x19
	bl	_clear_pending_isac_ints
	mov	x0, x19
	bl	_clear_pending_hscx_ints
	mov	x0, x19
	mov	w1, #1
	bl	_inithscxisac
	mov	x0, x19
	mov	w1, #2
	bl	_inithscxisac
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_5:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ASL0_OFFSET,8,3                ; @ASL0_OFFSET
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ASL0_W_RESET,4,2               ; @ASL0_W_RESET
	.comm	_ASL0_W_TDISABLE,4,2            ; @ASL0_W_TDISABLE
	.comm	_ASL0_W_TRESET,4,2              ; @ASL0_W_TRESET
	.comm	_ASL0_W_IRQENABLE,4,2           ; @ASL0_W_IRQENABLE
	.no_dead_strip	_AVM_card_msg
.subsections_via_symbols
