	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_register_device         ## -- Begin function mt76x2_register_device
	.p2align	4, 0x90
_mt76x2_register_device:                ## @mt76x2_register_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	addq	$8, %rdi
	movq	_mt76x2_phy_calibrate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r14, %rdi
	callq	_mt76x02_init_device
	movq	%r14, %rdi
	callq	_mt76x2_init_hardware
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_mt76x02_config_mac_addr_list
	movq	_mt76x02_rates@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_mt76_register_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mt76x2_stop_hardware
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_mt76x02_init_debugfs
	leaq	4(%r14), %rsi
	movq	%r14, %rdi
	callq	_mt76x2_init_txpower
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_mt76x2_init_txpower
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt76x2_phy_calibrate,4,2       ## @mt76x2_phy_calibrate
	.comm	_mt76x02_rates,4,2              ## @mt76x02_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_register_device         ; -- Begin function mt76x2_register_device
	.p2align	2
_mt76x2_register_device:                ; @mt76x2_register_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #8
Lloh0:
	adrp	x8, _mt76x2_phy_calibrate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mt76x2_phy_calibrate@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_mt76x02_init_device
	mov	x0, x19
	bl	_mt76x2_init_hardware
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mt76x02_config_mac_addr_list
Lloh3:
	adrp	x8, _mt76x02_rates@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mt76x02_rates@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_mt76_register_device
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mt76x2_stop_hardware
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_mt76x02_init_debugfs
	add	x1, x19, #4
	mov	x0, x19
	bl	_mt76x2_init_txpower
	mov	x0, x19
	mov	x1, x19
	bl	_mt76x2_init_txpower
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mt76x2_phy_calibrate,4,2       ; @mt76x2_phy_calibrate
	.comm	_mt76x02_rates,4,2              ; @mt76x02_rates
.subsections_via_symbols
