	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_set_macaddr            ## -- Begin function mt7601u_set_macaddr
	.p2align	4, 0x90
_mt7601u_set_macaddr:                   ## @mt7601u_set_macaddr
	.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
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_ether_addr_copy
	movq	(%r15), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	callq	_eth_random_addr
	movl	8(%r15), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_2:
	movq	_MT_MAC_ADDR_DW0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r15), %rdi
	callq	_get_unaligned_le32
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mt76_wr
	movq	_MT_MAC_ADDR_DW1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_get_unaligned_le16
	movl	%eax, %ebx
	movq	_MT_MAC_ADDR_DW1_U2ME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$255, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid MAC address, using random address %pM\n"

	.comm	_MT_MAC_ADDR_DW0,4,2            ## @MT_MAC_ADDR_DW0
	.comm	_MT_MAC_ADDR_DW1,4,2            ## @MT_MAC_ADDR_DW1
	.comm	_MT_MAC_ADDR_DW1_U2ME_MASK,4,2  ## @MT_MAC_ADDR_DW1_U2ME_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_set_macaddr            ; -- Begin function mt7601u_set_macaddr
	.p2align	2
_mt7601u_set_macaddr:                   ; @mt7601u_set_macaddr
	.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, x0
	ldr	x0, [x0]
	bl	_ether_addr_copy
	ldr	x0, [x19]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_eth_random_addr
	ldr	w0, [x19, #8]
	ldr	x2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_2:
Lloh2:
	adrp	x8, _MT_MAC_ADDR_DW0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_MAC_ADDR_DW0@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_get_unaligned_le32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_wr
Lloh5:
	adrp	x8, _MT_MAC_ADDR_DW1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_MAC_ADDR_DW1@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_get_unaligned_le16
	mov	x21, x0
Lloh8:
	adrp	x8, _MT_MAC_ADDR_DW1_U2ME_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_MAC_ADDR_DW1_U2ME_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #255
	bl	_FIELD_PREP
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	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_wr
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid MAC address, using random address %pM\n"

	.comm	_MT_MAC_ADDR_DW0,4,2            ; @MT_MAC_ADDR_DW0
	.comm	_MT_MAC_ADDR_DW1,4,2            ; @MT_MAC_ADDR_DW1
	.comm	_MT_MAC_ADDR_DW1_U2ME_MASK,4,2  ; @MT_MAC_ADDR_DW1_U2ME_MASK
.subsections_via_symbols
