	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfcsx_card_msg
_hfcsx_card_msg:                        ## @hfcsx_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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_L1_DEB_ISAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_debugl1
LBB0_2:
	cmpl	$131, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$130, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$129, %ebx
	jne	LBB0_9
## %bb.5:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_reset_hfcsx
	movq	%rbx, %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_inithfcsx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$80, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_HFCSX_INTS_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	12(%r15), %edx
	movl	%edx, 12(%r15)
	movq	_HFCSX_INT_M1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_Write_hfc
	movq	_HFCSX_MST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%r15, %rdi
	callq	_Write_hfc
	movq	%r14, %rdi
LBB0_8:
	callq	_spin_unlock_irqrestore
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_release_io_hfcsx
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_DEB_ISAC,4,2                ## @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HFCSX: card_msg %x"

	.comm	_HFCSX_INTS_TIMER,4,2           ## @HFCSX_INTS_TIMER
	.comm	_HFCSX_INT_M1,4,2               ## @HFCSX_INT_M1
	.comm	_HFCSX_MST_MODE,4,2             ## @HFCSX_MST_MODE
	.no_dead_strip	_hfcsx_card_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfcsx_card_msg
_hfcsx_card_msg:                        ; @hfcsx_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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _L1_DEB_ISAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L1_DEB_ISAC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_debugl1
LBB0_2:
	cmp	w20, #131
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #130
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, #129
	b.ne	LBB0_9
; %bb.5:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_reset_hfcsx
	b	LBB0_7
LBB0_6:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_inithfcsx
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #80
	bl	_msleep
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _HFCSX_INTS_TIMER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HFCSX_INTS_TIMER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w2, w9, w8
	str	w2, [x19, #12]
Lloh8:
	adrp	x8, _HFCSX_INT_M1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HFCSX_INT_M1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Write_hfc
Lloh11:
	adrp	x8, _HFCSX_MST_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HFCSX_MST_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_Write_hfc
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_release_io_hfcsx
LBB0_9:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_DEB_ISAC,4,2                ; @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HFCSX: card_msg %x"

	.comm	_HFCSX_INTS_TIMER,4,2           ; @HFCSX_INTS_TIMER
	.comm	_HFCSX_INT_M1,4,2               ; @HFCSX_INT_M1
	.comm	_HFCSX_MST_MODE,4,2             ; @HFCSX_MST_MODE
	.no_dead_strip	_hfcsx_card_msg
.subsections_via_symbols
