	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mt76u_wr
___mt76u_wr:                            ## @__mt76u_wr
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_MT_VEND_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	andl	%esi, %eax
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.2:
	movq	_MT_VEND_WRITE_CFG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MT_VEND_MULTI_WRITE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	notl	%ebx
	andl	%r15d, %ebx
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12)
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, (%rsp)
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	movq	%r12, %r9
	callq	___mt76u_vendor_request
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_usb_reg_wr               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_VEND_TYPE_MASK,4,2          ## @MT_VEND_TYPE_MASK
	.comm	_MT_VEND_WRITE_CFG,4,2          ## @MT_VEND_WRITE_CFG
	.comm	_MT_VEND_MULTI_WRITE,4,2        ## @MT_VEND_MULTI_WRITE
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.no_dead_strip	___mt76u_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mt76u_wr
___mt76u_wr:                            ; @__mt76u_wr
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MT_VEND_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_VEND_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w1
Lloh3:
	adrp	x10, _MT_VEND_WRITE_CFG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MT_VEND_WRITE_CFG@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MT_VEND_MULTI_WRITE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MT_VEND_MULTI_WRITE@GOTPAGEOFF]
	cmp	w9, #128
	csel	x9, x10, x11, eq
	ldr	w22, [x9]
	bic	w23, w1, w8
	mov	x0, x2
	bl	_cpu_to_le32
Lloh7:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
	str	w0, [x21]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	x4, x23
	mov	x5, x21
	mov	w6, #4
	bl	___mt76u_vendor_request
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_trace_usb_reg_wr
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_VEND_TYPE_MASK,4,2          ; @MT_VEND_TYPE_MASK
	.comm	_MT_VEND_WRITE_CFG,4,2          ; @MT_VEND_WRITE_CFG
	.comm	_MT_VEND_MULTI_WRITE,4,2        ; @MT_VEND_MULTI_WRITE
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.no_dead_strip	___mt76u_wr
.subsections_via_symbols
