	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mt7601u_rr
___mt7601u_rr:                          ## @__mt7601u_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, %ebx
	movq	%rdi, %r14
	movq	_USHRT_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setl	%dil
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_WARN_ONCE
	movq	_MT_VEND_MULTI_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %r9d
	movq	_MT_VEND_BUF@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_mt7601u_vendor_request
	cmpl	(%r15), %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	callq	_get_unaligned_le32
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %r15d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_trace_reg_read
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USHRT_MAX,4,2                  ## @USHRT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read high off:%08x"

	.comm	_MT_VEND_MULTI_READ,4,2         ## @MT_VEND_MULTI_READ
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_MT_VEND_BUF,4,2                ## @MT_VEND_BUF
L_.str.1:                               ## @.str.1
	.asciz	"Error: wrong size read:%d off:%08x\n"

	.no_dead_strip	___mt7601u_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mt7601u_rr
___mt7601u_rr:                          ; @__mt7601u_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, _USHRT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USHRT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, lt
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WARN_ONCE
Lloh5:
	adrp	x8, _MT_VEND_MULTI_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_VEND_MULTI_READ@GOTPAGEOFF]
Lloh7:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w2, [x9]
	ldr	w5, [x20, #4]
Lloh11:
	adrp	x21, _MT_VEND_BUF@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MT_VEND_BUF@GOTPAGEOFF]
	ldr	w6, [x21]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	bl	_mt7601u_vendor_request
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_get_unaligned_le32
	mov	x21, x0
	b	LBB0_5
LBB0_2:
	mov	x2, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_dev_err
LBB0_4:
	mov	w21, #-1
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_trace_reg_read
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USHRT_MAX,4,2                  ; @USHRT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read high off:%08x"

	.comm	_MT_VEND_MULTI_READ,4,2         ; @MT_VEND_MULTI_READ
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_MT_VEND_BUF,4,2                ; @MT_VEND_BUF
l_.str.1:                               ; @.str.1
	.asciz	"Error: wrong size read:%d off:%08x\n"

	.no_dead_strip	___mt7601u_rr
.subsections_via_symbols
