	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_check_status
_cpmac_check_status:                    ## @cpmac_check_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %edi
	movq	_CPMAC_MAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpmac_read
	movl	%eax, %r12d
	movl	%eax, %ebx
	shrl	$12, %ebx
	andl	$15, %ebx
	movl	%eax, %r13d
	shrl	$20, %r13d
	andl	$15, %r13d
	movl	%ebx, %eax
	orl	%r13d, %eax
	je	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_msg_drv
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movl	%r12d, %ecx
	shrl	$8, %ecx
	andl	$7, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r12d, %r8d
	callq	_netdev_warn
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	movl	%r12d, %ecx
	shrl	$16, %ecx
	andl	$7, %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%r12d, %r8d
	callq	_netdev_warn
LBB0_7:
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r14, %rdi
	callq	_cpmac_hw_stop
	leaq	8(%r15), %rdi
	callq	_schedule_work
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_atomic_inc
LBB0_9:
	movq	%r15, %rdi
	callq	_netif_msg_hw
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_cpmac_dump_regs
LBB0_11:
	movl	(%r15), %edi
	movq	_CPMAC_MAC_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpmac_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPMAC_MAC_STATUS,4,2           ## @CPMAC_MAC_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host error %d on rx channel %d (macstatus %08x), resetting\n"

L_.str.1:                               ## @.str.1
	.asciz	"host error %d on tx channel %d (macstatus %08x), resetting\n"

	.comm	_CPMAC_MAC_INT_CLEAR,4,2        ## @CPMAC_MAC_INT_CLEAR
	.no_dead_strip	_cpmac_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_check_status
_cpmac_check_status:                    ; @cpmac_check_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CPMAC_MAC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPMAC_MAC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cpmac_read
	ubfx	w23, w0, #12, #4
	ubfx	w22, w0, #20, #4
	orr	w8, w23, w22
	cbz	w8, LBB0_11
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_netif_msg_drv
	cbz	x0, LBB0_7
; %bb.2:
	bl	_net_ratelimit
	cbz	x0, LBB0_7
; %bb.3:
	cbz	w23, LBB0_5
; %bb.4:
	ubfx	w3, w21, #8, #3
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x4, x21
	bl	_netdev_warn
LBB0_5:
	cbz	w22, LBB0_7
; %bb.6:
	ubfx	w3, w21, #16, #3
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x4, x21
	bl	_netdev_warn
LBB0_7:
	mov	x0, x19
	bl	_netif_tx_stop_all_queues
	mov	x0, x19
	bl	_cpmac_hw_stop
	add	x0, x20, #8
	bl	_schedule_work
	cbz	x0, LBB0_9
; %bb.8:
	add	x0, x20, #4
	bl	_atomic_inc
LBB0_9:
	mov	x0, x20
	bl	_netif_msg_hw
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_cpmac_dump_regs
LBB0_11:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _CPMAC_MAC_INT_CLEAR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CPMAC_MAC_INT_CLEAR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #255
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cpmac_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CPMAC_MAC_STATUS,4,2           ; @CPMAC_MAC_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host error %d on rx channel %d (macstatus %08x), resetting\n"

l_.str.1:                               ; @.str.1
	.asciz	"host error %d on tx channel %d (macstatus %08x), resetting\n"

	.comm	_CPMAC_MAC_INT_CLEAR,4,2        ; @CPMAC_MAC_INT_CLEAR
	.no_dead_strip	_cpmac_check_status
.subsections_via_symbols
