	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_check_mac_err
_mt76x02_check_mac_err:                 ## @mt76x02_check_mac_err
	.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, %r14
	movl	$4340, %esi                     ## imm = 0x10F4
	callq	_mt76_rr
	movl	%eax, %ebx
	movl	$29, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	$5, %edi
	callq	_BIT
	orl	%r15d, %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_MT_MAC_SYS_CTRL_RESET_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mt76_set
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	_MT_MAC_SYS_CTRL_ENABLE_TX@GOTPCREL(%rip), %rax
	movq	_MT_MAC_SYS_CTRL_ENABLE_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac specific condition occurred\n"

	.comm	_MT_MAC_SYS_CTRL,4,2            ## @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_RESET_CSR,4,2  ## @MT_MAC_SYS_CTRL_RESET_CSR
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_MAC_SYS_CTRL_ENABLE_RX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_RX
	.no_dead_strip	_mt76x02_check_mac_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_check_mac_err
_mt76x02_check_mac_err:                 ; @mt76x02_check_mac_err
	.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
	mov	w1, #4340
	bl	_mt76_rr
	mov	x20, x0
	mov	w0, #29
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #7
	bl	_BIT
	mov	x21, x0
	mov	w0, #5
	bl	_BIT
	orr	w8, w0, w21
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x20, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _MT_MAC_SYS_CTRL_RESET_CSR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL_RESET_CSR@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_set
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGEOFF]
Lloh9:
	adrp	x9, _MT_MAC_SYS_CTRL_ENABLE_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT_MAC_SYS_CTRL_ENABLE_RX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	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
	b	_mt76_wr
LBB0_3:
	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	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac specific condition occurred\n"

	.comm	_MT_MAC_SYS_CTRL,4,2            ; @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_RESET_CSR,4,2  ; @MT_MAC_SYS_CTRL_RESET_CSR
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_MAC_SYS_CTRL_ENABLE_RX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_RX
	.no_dead_strip	_mt76x02_check_mac_err
.subsections_via_symbols
