	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_add_interface
_mt7601u_add_interface:                 ## @mt7601u_add_interface
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	8(%rsi), %r12
	xorl	%edi, %edi
	callq	_GROUP_WCID
	movl	%eax, %r14d
	movl	$0, (%r12)
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_mt7601u_set_macaddr
LBB0_2:
	movq	(%r15), %rcx
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rsi
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $eax killed $eax def $rax
	movl	%edx, %edi
	xorl	%ebx, %ebx
	movl	(%rcx,%rax,4), %r13d
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_4
## %bb.3:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %eax
	xorl	%edx, %edx
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %r13
	divl	(%r13)
	movl	%edx, %edi
	callq	_BIT
	movl	%eax, %ecx
	movq	(%r15), %rsi
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	(%r13)
                                        ## kill: def $eax killed $eax def $rax
	orl	%ecx, (%rsi,%rax,4)
	movl	%r14d, 4(%r12)
	movl	$-1, 8(%r12)
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_mt7601u_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_add_interface
_mt7601u_add_interface:                 ; @mt7601u_add_interface
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	ldr	x20, [x0]
	ldr	x22, [x1, #8]
	mov	w0, #0
	bl	_GROUP_WCID
	mov	x19, x0
	str	wzr, [x22]
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_ether_addr_equal
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mt7601u_set_macaddr
LBB0_2:
Lloh0:
	adrp	x21, _BITS_PER_LONG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BITS_PER_LONG@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x21]
	udiv	w10, w19, w9
	ldr	w23, [x8, w10, uxtw #2]
	msub	w0, w10, w9, w19
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21]
	udiv	w9, w19, w8
	msub	w0, w9, w8, w19
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	ldr	w10, [x21]
	udiv	w10, w19, w10
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	w8, #-1
	stp	w19, w8, [x22, #4]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_mt7601u_add_interface
.subsections_via_symbols
