	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_mac_interrupt
_cas_mac_interrupt:                     ## @cas_mac_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_REG_MAC_CTRL_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rsi), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %r8
	movq	%r14, %rdi
	movl	%ebx, %r9d
	callq	_netif_printk
	movq	_MAC_CTRL_PAUSE_STATE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	incl	4(%r14)
LBB0_3:
	movq	_MAC_CTRL_PAUSE_RECEIVED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	sarl	$16, %ebx
	movl	%ebx, (%r14)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MAC_CTRL_STATUS,8,3        ## @REG_MAC_CTRL_STATUS
	.comm	_intr,4,2                       ## @intr
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac interrupt, stat: 0x%x\n"

	.comm	_MAC_CTRL_PAUSE_STATE,4,2       ## @MAC_CTRL_PAUSE_STATE
	.comm	_MAC_CTRL_PAUSE_RECEIVED,4,2    ## @MAC_CTRL_PAUSE_RECEIVED
	.no_dead_strip	_cas_mac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_mac_interrupt
_cas_mac_interrupt:                     ; @cas_mac_interrupt
	.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, x1
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _REG_MAC_CTRL_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_MAC_CTRL_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _intr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x20
	bl	_netif_printk
Lloh11:
	adrp	x8, _MAC_CTRL_PAUSE_STATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAC_CTRL_PAUSE_STATE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_3:
Lloh14:
	adrp	x8, _MAC_CTRL_PAUSE_RECEIVED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAC_CTRL_PAUSE_RECEIVED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	asr	w8, w20, #16
	str	w8, [x19]
LBB0_5:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MAC_CTRL_STATUS,8,3        ; @REG_MAC_CTRL_STATUS
	.comm	_intr,4,2                       ; @intr
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac interrupt, stat: 0x%x\n"

	.comm	_MAC_CTRL_PAUSE_STATE,4,2       ; @MAC_CTRL_PAUSE_STATE
	.comm	_MAC_CTRL_PAUSE_RECEIVED,4,2    ; @MAC_CTRL_PAUSE_RECEIVED
	.no_dead_strip	_cas_mac_interrupt
.subsections_via_symbols
