	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mt76x02_init_device
LCPI0_0:
	.long	4                               ## 0x4
	.long	1                               ## 0x1
	.long	7                               ## 0x7
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt76x02_init_device
	.p2align	4, 0x90
_mt76x02_init_device:                   ## @mt76x02_init_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, %r13
	callq	_mt76_hw
	movq	%rax, %r14
	movq	32(%rax), %r15
	leaq	36(%r13), %rdi
	movq	_mt76x02_mac_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,1,7,1]
	movups	%xmm0, (%r14)
	movl	$2, 16(%r14)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	movl	%eax, (%r15)
	movq	%r13, %rdi
	callq	_mt76_is_usb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	16(%r14), %ecx
	addl	%ecx, %eax
	addl	$4, %eax
	movl	%eax, 16(%r14)
	movq	_mt76x02u_if_comb@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r15)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r15)
	jmp	LBB0_4
LBB0_2:
	leaq	40(%r13), %rdi
	movq	_mt76x02_wdt_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r13, %rdi
	callq	_mt76x02_dfs_init_detector
	movq	_mt76x02_regd_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_mt76x02_if_comb@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r15)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r15)
	movq	_WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	_CONFIG_MT76_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_mt76x02_led_set_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	_mt76x02_led_set_blink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
LBB0_4:
	movq	_NL80211_EXT_FEATURE_VHT_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wiphy_ext_feature_set
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 20(%r14)
	movq	_SUPPORTS_HT_CCK_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_REORDERING_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
	movabsq	$-4294967041, %rax              ## imm = 0xFFFFFFFF000000FF
	movq	%rax, 20(%r13)
	movl	$9, (%r13)
	movq	%r13, %rdi
	callq	_is_mt76x2
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_IEEE80211_HT_CAP_LDPC_CODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
	orl	%eax, 12(%r13)
	movl	$3, %eax
	movl	$514, %ecx                      ## imm = 0x202
	jmp	LBB0_7
LBB0_5:
	movl	$1, %eax
	movl	$257, %ecx                      ## imm = 0x101
LBB0_7:
	movl	%ecx, 4(%r13)
	movl	%eax, 8(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt76x02_mac_work,4,2           ## @mt76x02_mac_work
	.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	_MT_DMA_HDR_LEN,8,3             ## @MT_DMA_HDR_LEN
	.comm	_mt76x02u_if_comb,8,3           ## @mt76x02u_if_comb
	.comm	_mt76x02_wdt_work,4,2           ## @mt76x02_wdt_work
	.comm	_mt76x02_regd_notifier,4,2      ## @mt76x02_regd_notifier
	.comm	_mt76x02_if_comb,8,3            ## @mt76x02_if_comb
	.comm	_WIPHY_FLAG_HAS_CHANNEL_SWITCH,4,2 ## @WIPHY_FLAG_HAS_CHANNEL_SWITCH
	.comm	_CONFIG_MT76_LEDS,4,2           ## @CONFIG_MT76_LEDS
	.comm	_mt76x02_led_set_brightness,4,2 ## @mt76x02_led_set_brightness
	.comm	_mt76x02_led_set_blink,4,2      ## @mt76x02_led_set_blink
	.comm	_NL80211_EXT_FEATURE_VHT_IBSS,4,2 ## @NL80211_EXT_FEATURE_VHT_IBSS
	.comm	_SUPPORTS_HT_CCK_RATES,4,2      ## @SUPPORTS_HT_CCK_RATES
	.comm	_SUPPORTS_REORDERING_BUFFER,4,2 ## @SUPPORTS_REORDERING_BUFFER
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ## @IEEE80211_HT_CAP_LDPC_CODING
	.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 mt76x02_init_device
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.long	1                               ; 0x1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	257                             ; 0x101
	.long	1                               ; 0x1
lCPI0_2:
	.long	514                             ; 0x202
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt76x02_init_device
	.p2align	2
_mt76x02_init_device:                   ; @mt76x02_init_device
	.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
	bl	_mt76_hw
	mov	x20, x0
	ldr	x21, [x0, #32]
	add	x0, x19, #36
Lloh0:
	adrp	x8, _mt76x02_mac_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mt76x02_mac_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x20]
	mov	w8, #2
	str	w8, [x20, #16]
Lloh5:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh8:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w0, w22
Lloh11:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w22, w0
	str	w8, [x21]
	mov	x0, x19
	bl	_mt76_is_usb
	cbz	x0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _MT_DMA_HDR_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_DMA_HDR_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	add	w8, w8, w9
	add	w8, w8, #4
	str	w8, [x20, #16]
Lloh17:
	adrp	x8, _mt76x02u_if_comb@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mt76x02u_if_comb@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	str	x0, [x21, #16]
	bl	_ARRAY_SIZE
	str	x0, [x21, #8]
	b	LBB0_4
LBB0_2:
	add	x0, x19, #40
Lloh20:
	adrp	x8, _mt76x02_wdt_work@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mt76x02_wdt_work@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_mt76x02_dfs_init_detector
Lloh23:
	adrp	x8, _mt76x02_regd_notifier@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mt76x02_regd_notifier@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh26:
	adrp	x8, _mt76x02_if_comb@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mt76x02_if_comb@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
	str	x0, [x21, #16]
	bl	_ARRAY_SIZE
	str	x0, [x21, #8]
Lloh29:
	adrp	x8, _WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
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_4
; %bb.3:
Lloh35:
	adrp	x8, _mt76x02_led_set_brightness@GOTPAGE
Lloh36:
	ldr	x8, [x8, _mt76x02_led_set_brightness@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _mt76x02_led_set_blink@GOTPAGE
Lloh39:
	ldr	x9, [x9, _mt76x02_led_set_blink@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
LBB0_4:
Lloh41:
	adrp	x8, _NL80211_EXT_FEATURE_VHT_IBSS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_VHT_IBSS@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wiphy_ext_feature_set
	movi.2s	v0, #4
	stur	d0, [x20, #20]
Lloh44:
	adrp	x8, _SUPPORTS_HT_CCK_RATES@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SUPPORTS_HT_CCK_RATES@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh47:
	adrp	x8, _SUPPORTS_REORDERING_BUFFER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SUPPORTS_REORDERING_BUFFER@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
	movi	d0, #0xffffffff000000ff
	stur	d0, [x19, #20]
	mov	w8, #9
	str	w8, [x19]
	mov	x0, x19
	bl	_is_mt76x2
	cbz	x0, LBB0_6
; %bb.5:
Lloh50:
	adrp	x8, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGEOFF]
	ldur	d0, [x19, #12]
	ld1r.2s	{ v1 }, [x8]
	orr.8b	v0, v0, v1
	stur	d0, [x19, #12]
Lloh52:
	adrp	x8, lCPI0_2@PAGE
Lloh53:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh54:
	adrp	x8, lCPI0_1@PAGE
Lloh55:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
LBB0_7:
	stur	d0, [x19, #4]
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdr	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdr	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_mt76x02_mac_work,4,2           ; @mt76x02_mac_work
	.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	_MT_DMA_HDR_LEN,8,3             ; @MT_DMA_HDR_LEN
	.comm	_mt76x02u_if_comb,8,3           ; @mt76x02u_if_comb
	.comm	_mt76x02_wdt_work,4,2           ; @mt76x02_wdt_work
	.comm	_mt76x02_regd_notifier,4,2      ; @mt76x02_regd_notifier
	.comm	_mt76x02_if_comb,8,3            ; @mt76x02_if_comb
	.comm	_WIPHY_FLAG_HAS_CHANNEL_SWITCH,4,2 ; @WIPHY_FLAG_HAS_CHANNEL_SWITCH
	.comm	_CONFIG_MT76_LEDS,4,2           ; @CONFIG_MT76_LEDS
	.comm	_mt76x02_led_set_brightness,4,2 ; @mt76x02_led_set_brightness
	.comm	_mt76x02_led_set_blink,4,2      ; @mt76x02_led_set_blink
	.comm	_NL80211_EXT_FEATURE_VHT_IBSS,4,2 ; @NL80211_EXT_FEATURE_VHT_IBSS
	.comm	_SUPPORTS_HT_CCK_RATES,4,2      ; @SUPPORTS_HT_CCK_RATES
	.comm	_SUPPORTS_REORDERING_BUFFER,4,2 ; @SUPPORTS_REORDERING_BUFFER
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ; @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
.subsections_via_symbols
