	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mt7603_register_device
LCPI0_0:
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	7                               ## 0x7
	.long	11                              ## 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt7603_register_device
	.p2align	4, 0x90
_mt7603_register_device:                ## @mt7603_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	%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	%rdi, %rbx
	callq	_mt76_hw
	movq	%rax, %r15
	movq	24(%rax), %r13
	movq	32(%rbx), %rsi
	movq	%rsi, 56(%rbx)
	movl	40(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$12, %edx
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	8(%rbx), %r14
	movq	_mt7603_rr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_mt7603_wr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_mt7603_rmw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, 32(%rbx)
	leaq	48(%rbx), %rdi
	callq	_spin_lock_init
	leaq	28(%rbx), %rdi
	movq	_mt7603_mac_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	24(%rbx), %rdi
	movq	_mt7603_pre_tbtt_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movl	$3, 8(%rbx)
	movq	_MT_EFUSE_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$100, %rsi
	movq	%rbx, %rdi
	callq	_mt76_rr
	movl	%eax, %r12d
	movl	$4, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movl	$1, (%r14)
LBB0_4:
	movl	$9, (%rbx)
	movq	%rbx, %rdi
	callq	_mt7603_init_hardware
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,3,7,11]
	movups	%xmm0, (%r15)
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 16(%r15)
	movq	_if_comb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r13)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r13)
	movq	_SUPPORTS_REORDERING_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ieee80211_hw_set
	movq	_TX_STATUS_NO_AMPDU_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ieee80211_hw_set
	movq	_CONFIG_MT76_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_mt7603_led_set_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_mt7603_led_set_blink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_7:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r12d, %eax
	movl	%eax, (%r13)
	movq	_WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
	movq	_mt7603_regd_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_mt7603_rates@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_mt76_register_device
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_mt7603_init_debugfs
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_mt7603_init_txpower
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mt7603_rr,4,2                  ## @mt7603_rr
	.comm	_mt7603_wr,4,2                  ## @mt7603_wr
	.comm	_mt7603_rmw,4,2                 ## @mt7603_rmw
	.comm	_mt7603_mac_work,4,2            ## @mt7603_mac_work
	.comm	_mt7603_pre_tbtt_tasklet,4,2    ## @mt7603_pre_tbtt_tasklet
	.comm	_MT_EFUSE_BASE,8,3              ## @MT_EFUSE_BASE
	.comm	_if_comb,4,2                    ## @if_comb
	.comm	_SUPPORTS_REORDERING_BUFFER,4,2 ## @SUPPORTS_REORDERING_BUFFER
	.comm	_TX_STATUS_NO_AMPDU_LEN,4,2     ## @TX_STATUS_NO_AMPDU_LEN
	.comm	_CONFIG_MT76_LEDS,4,2           ## @CONFIG_MT76_LEDS
	.comm	_mt7603_led_set_brightness,4,2  ## @mt7603_led_set_brightness
	.comm	_mt7603_led_set_blink,4,2       ## @mt7603_led_set_blink
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_WIPHY_FLAG_HAS_CHANNEL_SWITCH,4,2 ## @WIPHY_FLAG_HAS_CHANNEL_SWITCH
	.comm	_mt7603_regd_notifier,4,2       ## @mt7603_regd_notifier
	.comm	_mt7603_rates,4,2               ## @mt7603_rates
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mt7603_register_device
lCPI0_0:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	7                               ; 0x7
	.long	11                              ; 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt7603_register_device
	.p2align	2
_mt7603_register_device:                ; @mt7603_register_device
	.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	x19, x0
	bl	_mt76_hw
	mov	x21, x0
	ldr	x23, [x0, #24]
	ldr	x1, [x19, #32]
	str	x1, [x19, #56]
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #12
	bl	_devm_kmemdup
	cbz	x0, LBB0_8
; %bb.1:
	add	x20, x19, #8
Lloh3:
	adrp	x8, _mt7603_rr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mt7603_rr@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #8]
Lloh6:
	adrp	x8, _mt7603_wr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mt7603_wr@GOTPAGEOFF]
Lloh8:
	adrp	x9, _mt7603_rmw@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mt7603_rmw@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	str	x0, [x19, #32]
	add	x0, x19, #48
	bl	_spin_lock_init
	add	x0, x19, #28
Lloh12:
	adrp	x8, _mt7603_mac_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mt7603_mac_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #24
Lloh15:
	adrp	x8, _mt7603_pre_tbtt_tasklet@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mt7603_pre_tbtt_tasklet@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	w8, #3
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _MT_EFUSE_BASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT_EFUSE_BASE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x1, x8, #100
	mov	x0, x19
	bl	_mt76_rr
	mov	x22, x0
	mov	w0, #4
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	mov	w8, #9
	str	w8, [x19]
	mov	x0, x19
	bl	_mt7603_init_hardware
	cbnz	w0, LBB0_9
; %bb.4:
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x21]
	movi.2s	v0, #4
	str	d0, [x21, #16]
Lloh23:
	adrp	x8, _if_comb@GOTPAGE
Lloh24:
	ldr	x8, [x8, _if_comb@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	str	w0, [x23, #16]
	bl	_ARRAY_SIZE
	str	w0, [x23, #12]
Lloh26:
	adrp	x8, _SUPPORTS_REORDERING_BUFFER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SUPPORTS_REORDERING_BUFFER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ieee80211_hw_set
Lloh29:
	adrp	x8, _TX_STATUS_NO_AMPDU_LEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TX_STATUS_NO_AMPDU_LEN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ieee80211_hw_set
Lloh32:
	adrp	x8, _CONFIG_MT76_LEDS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CONFIG_MT76_LEDS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_6
; %bb.5:
Lloh35:
	adrp	x8, _mt7603_led_set_brightness@GOTPAGE
Lloh36:
	ldr	x8, [x8, _mt7603_led_set_brightness@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _mt7603_led_set_blink@GOTPAGE
Lloh39:
	ldr	x9, [x9, _mt7603_led_set_blink@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
LBB0_6:
Lloh41:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh44:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
Lloh47:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w21, w0
Lloh50:
	adrp	x9, _WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPAGE
Lloh51:
	ldr	x9, [x9, _WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPAGEOFF]
	str	w8, [x23]
Lloh52:
	ldr	w8, [x9]
	ldr	w9, [x23, #8]
	orr	w8, w9, w8
Lloh53:
	adrp	x9, _mt7603_regd_notifier@GOTPAGE
Lloh54:
	ldr	x9, [x9, _mt7603_regd_notifier@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #4]
Lloh56:
	adrp	x8, _mt7603_rates@GOTPAGE
Lloh57:
	ldr	x8, [x8, _mt7603_rates@GOTPAGEOFF]
Lloh58:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_mt76_register_device
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_mt7603_init_debugfs
	add	x1, x19, #12
	mov	x0, x19
	bl	_mt7603_init_txpower
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh59:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mt7603_rr,4,2                  ; @mt7603_rr
	.comm	_mt7603_wr,4,2                  ; @mt7603_wr
	.comm	_mt7603_rmw,4,2                 ; @mt7603_rmw
	.comm	_mt7603_mac_work,4,2            ; @mt7603_mac_work
	.comm	_mt7603_pre_tbtt_tasklet,4,2    ; @mt7603_pre_tbtt_tasklet
	.comm	_MT_EFUSE_BASE,8,3              ; @MT_EFUSE_BASE
	.comm	_if_comb,4,2                    ; @if_comb
	.comm	_SUPPORTS_REORDERING_BUFFER,4,2 ; @SUPPORTS_REORDERING_BUFFER
	.comm	_TX_STATUS_NO_AMPDU_LEN,4,2     ; @TX_STATUS_NO_AMPDU_LEN
	.comm	_CONFIG_MT76_LEDS,4,2           ; @CONFIG_MT76_LEDS
	.comm	_mt7603_led_set_brightness,4,2  ; @mt7603_led_set_brightness
	.comm	_mt7603_led_set_blink,4,2       ; @mt7603_led_set_blink
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_WIPHY_FLAG_HAS_CHANNEL_SWITCH,4,2 ; @WIPHY_FLAG_HAS_CHANNEL_SWITCH
	.comm	_mt7603_regd_notifier,4,2       ; @mt7603_regd_notifier
	.comm	_mt7603_rates,4,2               ; @mt7603_rates
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
.subsections_via_symbols
