	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x2u_mcu_reset_wmt
_mt76x2u_mcu_reset_wmt:                 ## @mt76x2u_mcu_reset_wmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movaps	l___const.mt76x2u_mcu_reset_wmt.data+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.mt76x2u_mcu_reset_wmt.data(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	(%rdi), %edi
	leaq	-48(%rbp), %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	_MT_VEND_DEV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	(%rbx), %r9d
	movl	$32, (%rsp)
	movq	%rbx, %rdi
	movl	$18, %ecx
	xorl	%r8d, %r8d
	callq	_mt76u_vendor_request
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.mt76x2u_mcu_reset_wmt.data
l___const.mt76x2u_mcu_reset_wmt.data:
	.long	111                             ## 0x6f
	.long	252                             ## 0xfc
	.long	5                               ## 0x5
	.long	1                               ## 0x1
	.long	7                               ## 0x7
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	4                               ## 0x4

	.comm	_MT_VEND_DEV_MODE,4,2           ## @MT_VEND_DEV_MODE
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.no_dead_strip	_mt76x2u_mcu_reset_wmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x2u_mcu_reset_wmt
_mt76x2u_mcu_reset_wmt:                 ; @mt76x2u_mcu_reset_wmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l___const.mt76x2u_mcu_reset_wmt.data@PAGE
Lloh4:
	add	x9, x9, l___const.mt76x2u_mcu_reset_wmt.data@PAGEOFF
	stur	x8, [x29, #-24]
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp]
	ldr	w0, [x0]
	mov	x1, sp
	mov	w2, #32
	bl	_memcpy
Lloh5:
	adrp	x8, _MT_VEND_DEV_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_VEND_DEV_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _USB_TYPE_CLASS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w5, [x19]
	mov	x0, x19
	mov	w3, #18
	mov	w4, #0
	mov	w6, #32
	bl	_mt76u_vendor_request
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.mt76x2u_mcu_reset_wmt.data
l___const.mt76x2u_mcu_reset_wmt.data:
	.long	111                             ; 0x6f
	.long	252                             ; 0xfc
	.long	5                               ; 0x5
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	4                               ; 0x4

	.comm	_MT_VEND_DEV_MODE,4,2           ; @MT_VEND_DEV_MODE
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.no_dead_strip	_mt76x2u_mcu_reset_wmt
.subsections_via_symbols
