	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_register_device           ## -- Begin function mt76_register_device
	.p2align	4, 0x90
_mt76_register_device:                  ## @mt76_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
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rbx), %r12
	movl	32(%rdi), %edi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	leaq	36(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movl	32(%r14), %esi
	movq	%rbx, %rdi
	callq	_SET_IEEE80211_DEV
	movl	28(%r14), %esi
	movq	%rbx, %rdi
	callq	_SET_IEEE80211_PERM_ADDR
	movq	_NL80211_FEATURE_ACTIVE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r12)
	movq	_NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wiphy_ext_feature_set
	movl	24(%r14), %eax
	movl	%eax, 8(%r12)
	movl	%eax, 4(%r12)
	movabsq	$68719476740, %rax              ## imm = 0x1000000004
	movq	%rax, (%rbx)
	movq	_SIGNAL_DBM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_PS_NULLFUNC_STACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_HOST_BROADCAST_PS_BUFFERING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_AMPDU_AGGREGATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_RC_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORT_FAST_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_CLONED_SKBS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_SUPPORTS_AMSDU_IN_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_TX_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_TX_FRAG_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_MFP_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_AP_LINK_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_REPORTS_TX_ACK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_NEEDS_UNIQUE_STA_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_hw_set
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_mt76_init_sband_2g
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	addq	$16, %r13
	addl	$-4, %r15d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mt76_init_sband_5g
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_wiphy_read_of_freq_limits
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76_check_sband
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76_check_sband
	movq	_CONFIG_MT76_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_mt76_led_init
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_register_hw          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_FEATURE_ACTIVE_MONITOR,4,2 ## @NL80211_FEATURE_ACTIVE_MONITOR
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ## @NL80211_EXT_FEATURE_CQM_RSSI_LIST
	.comm	_SIGNAL_DBM,4,2                 ## @SIGNAL_DBM
	.comm	_PS_NULLFUNC_STACK,4,2          ## @PS_NULLFUNC_STACK
	.comm	_HOST_BROADCAST_PS_BUFFERING,4,2 ## @HOST_BROADCAST_PS_BUFFERING
	.comm	_AMPDU_AGGREGATION,4,2          ## @AMPDU_AGGREGATION
	.comm	_SUPPORTS_RC_TABLE,4,2          ## @SUPPORTS_RC_TABLE
	.comm	_SUPPORT_FAST_XMIT,4,2          ## @SUPPORT_FAST_XMIT
	.comm	_SUPPORTS_CLONED_SKBS,4,2       ## @SUPPORTS_CLONED_SKBS
	.comm	_SUPPORTS_AMSDU_IN_AMPDU,4,2    ## @SUPPORTS_AMSDU_IN_AMPDU
	.comm	_TX_AMSDU,4,2                   ## @TX_AMSDU
	.comm	_TX_FRAG_LIST,4,2               ## @TX_FRAG_LIST
	.comm	_MFP_CAPABLE,4,2                ## @MFP_CAPABLE
	.comm	_AP_LINK_PS,4,2                 ## @AP_LINK_PS
	.comm	_REPORTS_TX_ACK_STATUS,4,2      ## @REPORTS_TX_ACK_STATUS
	.comm	_NEEDS_UNIQUE_STA_ADDR,4,2      ## @NEEDS_UNIQUE_STA_ADDR
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_CONFIG_MT76_LEDS,4,2           ## @CONFIG_MT76_LEDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mt76_register_device
lCPI0_0:
	.long	4                               ; 0x4
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt76_register_device
	.p2align	2
_mt76_register_device:                  ; @mt76_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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x24, [x19, #8]
	ldr	w0, [x0, #32]
	mov	x1, x20
	bl	_dev_set_drvdata
	add	x0, x20, #36
	bl	_INIT_LIST_HEAD
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_SET_IEEE80211_DEV
	ldr	w1, [x20, #28]
	mov	x0, x19
	bl	_SET_IEEE80211_PERM_ADDR
Lloh0:
	adrp	x8, _NL80211_FEATURE_ACTIVE_MONITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_FEATURE_ACTIVE_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x24, #12]
	orr	w8, w9, w8
	str	w8, [x24, #12]
Lloh3:
	adrp	x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_EXT_FEATURE_CQM_RSSI_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_wiphy_ext_feature_set
	ldr	w8, [x20, #24]
	stp	w8, w8, [x24, #4]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh8:
	adrp	x8, _SIGNAL_DBM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGNAL_DBM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh11:
	adrp	x8, _PS_NULLFUNC_STACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PS_NULLFUNC_STACK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh14:
	adrp	x8, _HOST_BROADCAST_PS_BUFFERING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HOST_BROADCAST_PS_BUFFERING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh17:
	adrp	x8, _AMPDU_AGGREGATION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AMPDU_AGGREGATION@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh20:
	adrp	x8, _SUPPORTS_RC_TABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SUPPORTS_RC_TABLE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh23:
	adrp	x8, _SUPPORT_FAST_XMIT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SUPPORT_FAST_XMIT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh26:
	adrp	x8, _SUPPORTS_CLONED_SKBS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SUPPORTS_CLONED_SKBS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh29:
	adrp	x8, _SUPPORTS_AMSDU_IN_AMPDU@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SUPPORTS_AMSDU_IN_AMPDU@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh32:
	adrp	x8, _TX_AMSDU@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TX_AMSDU@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh35:
	adrp	x8, _TX_FRAG_LIST@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_FRAG_LIST@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh38:
	adrp	x8, _MFP_CAPABLE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MFP_CAPABLE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh41:
	adrp	x8, _AP_LINK_PS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AP_LINK_PS@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh44:
	adrp	x8, _REPORTS_TX_ACK_STATUS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REPORTS_TX_ACK_STATUS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh47:
	adrp	x8, _NEEDS_UNIQUE_STA_ADDR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NEEDS_UNIQUE_STA_ADDR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_hw_set
Lloh50:
	adrp	x8, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_mt76_init_sband_2g
	cbnz	w0, LBB0_6
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	add	x1, x23, #16
	sub	w2, w22, #4
	mov	x0, x20
	mov	x3, x21
	bl	_mt76_init_sband_5g
	cbnz	w0, LBB0_6
LBB0_4:
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_wiphy_read_of_freq_limits
Lloh53:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76_check_sband
Lloh56:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76_check_sband
Lloh59:
	adrp	x8, _CONFIG_MT76_LEDS@GOTPAGE
Lloh60:
	ldr	x8, [x8, _CONFIG_MT76_LEDS@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_mt76_led_init
	cbz	w0, LBB0_7
LBB0_6:
	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
LBB0_7:
	mov	x0, x19
	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
	b	_ieee80211_register_hw
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_FEATURE_ACTIVE_MONITOR,4,2 ; @NL80211_FEATURE_ACTIVE_MONITOR
	.comm	_NL80211_EXT_FEATURE_CQM_RSSI_LIST,4,2 ; @NL80211_EXT_FEATURE_CQM_RSSI_LIST
	.comm	_SIGNAL_DBM,4,2                 ; @SIGNAL_DBM
	.comm	_PS_NULLFUNC_STACK,4,2          ; @PS_NULLFUNC_STACK
	.comm	_HOST_BROADCAST_PS_BUFFERING,4,2 ; @HOST_BROADCAST_PS_BUFFERING
	.comm	_AMPDU_AGGREGATION,4,2          ; @AMPDU_AGGREGATION
	.comm	_SUPPORTS_RC_TABLE,4,2          ; @SUPPORTS_RC_TABLE
	.comm	_SUPPORT_FAST_XMIT,4,2          ; @SUPPORT_FAST_XMIT
	.comm	_SUPPORTS_CLONED_SKBS,4,2       ; @SUPPORTS_CLONED_SKBS
	.comm	_SUPPORTS_AMSDU_IN_AMPDU,4,2    ; @SUPPORTS_AMSDU_IN_AMPDU
	.comm	_TX_AMSDU,4,2                   ; @TX_AMSDU
	.comm	_TX_FRAG_LIST,4,2               ; @TX_FRAG_LIST
	.comm	_MFP_CAPABLE,4,2                ; @MFP_CAPABLE
	.comm	_AP_LINK_PS,4,2                 ; @AP_LINK_PS
	.comm	_REPORTS_TX_ACK_STATUS,4,2      ; @REPORTS_TX_ACK_STATUS
	.comm	_NEEDS_UNIQUE_STA_ADDR,4,2      ; @NEEDS_UNIQUE_STA_ADDR
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_CONFIG_MT76_LEDS,4,2           ; @CONFIG_MT76_LEDS
.subsections_via_symbols
