	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mt76u_rr
___mt76u_rr:                            ## @__mt76u_rr
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MT_VEND_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, %ecx
	andl	%esi, %ecx
	cmpl	$129, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_MT_VEND_READ_CFG@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_MT_VEND_MULTI_READ@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_MT_VEND_READ_EEPROM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	notl	%r8d
	andl	%r14d, %r8d
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, (%rsp)
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	___mt76u_vendor_request
	movl	$-1, %ebx
	cmpl	$4, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
LBB0_7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_trace_usb_reg_rr
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_VEND_TYPE_MASK,4,2          ## @MT_VEND_TYPE_MASK
	.comm	_MT_VEND_READ_EEPROM,4,2        ## @MT_VEND_READ_EEPROM
	.comm	_MT_VEND_READ_CFG,4,2           ## @MT_VEND_READ_CFG
	.comm	_MT_VEND_MULTI_READ,4,2         ## @MT_VEND_MULTI_READ
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.no_dead_strip	___mt76u_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mt76u_rr
___mt76u_rr:                            ; @__mt76u_rr
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MT_VEND_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_VEND_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MT_VEND_READ_EEPROM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT_VEND_READ_EEPROM@GOTPAGEOFF]
	and	w10, w8, w1
Lloh5:
	adrp	x11, _MT_VEND_READ_CFG@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MT_VEND_READ_CFG@GOTPAGEOFF]
Lloh7:
	adrp	x12, _MT_VEND_MULTI_READ@GOTPAGE
Lloh8:
	ldr	x12, [x12, _MT_VEND_MULTI_READ@GOTPAGEOFF]
	cmp	w10, #129
	csel	x11, x11, x12, eq
	cmp	w10, #128
	csel	x9, x9, x11, eq
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
	bic	w4, w19, w8
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w3, #0
	mov	x5, x0
	mov	w6, #4
	bl	___mt76u_vendor_request
	cmp	w0, #4
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_le32_to_cpu
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #-1
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_trace_usb_reg_rr
	mov	x0, x21
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.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_READ_EEPROM,4,2        ; @MT_VEND_READ_EEPROM
	.comm	_MT_VEND_READ_CFG,4,2           ; @MT_VEND_READ_CFG
	.comm	_MT_VEND_MULTI_READ,4,2         ; @MT_VEND_MULTI_READ
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.no_dead_strip	___mt76u_rr
.subsections_via_symbols
