	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_copy
_mt76u_copy:                            ## @mt76u_copy
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_mutex_lock
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,2), %rdi
	movq	8(%r13), %rsi
	callq	_put_unaligned
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_VEND_MULTI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %r8d
	andl	$-4, %r8d
	addq	%r12, %r8
	movq	8(%r13), %r9
	movl	$8, (%rsp)
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	___mt76u_vendor_request
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_copy
_mt76u_copy:                            ; @mt76u_copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #4
	bl	_DIV_ROUND_UP
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _MT_VEND_MULTI_WRITE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MT_VEND_MULTI_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _USB_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _USB_DIR_OUT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _USB_TYPE_VENDOR@GOTPAGE
Lloh5:
	ldr	x27, [x27, _USB_TYPE_VENDOR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x24, lsl #3]
	ldr	x1, [x21, #8]
	bl	_put_unaligned
	ldr	w1, [x25]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w2, w9, w8
	and	x8, x23, #0xfffffffc
	add	x4, x8, x22
	ldr	x5, [x21, #8]
	mov	x0, x21
	mov	w3, #0
	mov	w6, #8
	bl	___mt76u_vendor_request
	tbnz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	mov	x0, x19
	mov	w1, #4
	bl	_DIV_ROUND_UP
	add	x23, x23, #4
	cmp	x24, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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_copy
.subsections_via_symbols
