	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_set_key
_mt7601u_set_key:                       ## @mt7601u_set_key
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	(%rdx), %r12
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	leaq	4(%r12), %rax
	testq	%rcx, %rcx
	cmovneq	%rcx, %rax
	movl	4(%rbx), %edx
	andl	$-4, %edx
	cmpl	$128, %edx
	jne	LBB0_4
## %bb.6:
	movq	(%rdi), %r14
	movl	(%rbx), %r15d
	movq	_SET_KEY@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	jne	LBB0_8
## %bb.7:
	movl	4(%rax), %edx
	movl	%edx, 8(%rbx)
	movl	%r15d, (%rax)
	movl	%r15d, %edx
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_16:
	movl	4(%rcx), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_mac_wcid_set_key          ## TAILCALL
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rax), %edx
	cmpl	%edx, %r15d
	jne	LBB0_10
## %bb.9:
	movl	$-1, (%rax)
	movl	$-1, %edx
LBB0_10:
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	jne	LBB0_16
LBB0_12:
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.13:
	cmpl	%r15d, %edx
	jne	LBB0_15
LBB0_14:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_mt76_mac_wcid_set_key
	testl	%eax, %eax
	jne	LBB0_5
LBB0_15:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_mac_shared_key_setup      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.no_dead_strip	_mt7601u_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_set_key
_mt7601u_set_key:                       ; @mt7601u_set_key
	.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, x4
	ldr	x22, [x2]
	cbz	x3, LBB0_2
; %bb.1:
	ldr	x8, [x3]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
	add	x9, x22, #4
	cmp	x8, #0
	csel	x9, x9, x8, eq
	ldr	w10, [x19, #4]
	and	w10, w10, #0xfffffffc
	cmp	w10, #128
	b.ne	LBB0_6
; %bb.4:
	ldr	x20, [x0]
	ldr	w21, [x19]
Lloh0:
	adrp	x10, _SET_KEY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SET_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_8
; %bb.5:
	ldr	w10, [x9, #4]
	str	w10, [x19, #8]
	str	w21, [x9]
	mov	x10, x21
	cbnz	x8, LBB0_10
	b	LBB0_12
LBB0_6:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	ldr	w10, [x9]
	cmp	w21, w10
	b.ne	LBB0_11
; %bb.9:
	mov	x19, #0
	mov	w10, #-1
	str	w10, [x9]
	cbz	x8, LBB0_12
LBB0_10:
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	x2, x19
	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
	b	_mt76_mac_wcid_set_key
LBB0_11:
	mov	x19, #0
	cbnz	x8, LBB0_10
LBB0_12:
	cbnz	x19, LBB0_14
; %bb.13:
	cmp	w10, w21
	b.ne	LBB0_15
LBB0_14:
	ldr	w1, [x9, #4]
	mov	x0, x20
	mov	x2, x19
	bl	_mt76_mac_wcid_set_key
	cbnz	w0, LBB0_7
LBB0_15:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	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
	b	_mt76_mac_shared_key_setup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.no_dead_strip	_mt7601u_set_key
.subsections_via_symbols
