	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mt7615_register_device
LCPI0_0:
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	7                               ## 0x7
	.long	11                              ## 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt7615_register_device
	.p2align	4, 0x90
_mt7615_register_device:                ## @mt7615_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, %r14
	movq	32(%rax), %r13
	movq	%rbx, %rdi
	callq	_mt7615_init_hardware
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	4(%rbx), %r15
	leaq	28(%rbx), %rdi
	movq	_mt7615_mac_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,3,7,11]
	movups	%xmm0, (%r14)
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 16(%r14)
	movq	_if_comb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r13)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r13)
	movq	_mt7615_regd_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r13)
	movq	_SUPPORTS_REORDERING_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
	movq	_TX_STATUS_NO_AMPDU_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ieee80211_hw_set
	movq	_IEEE80211_HT_CAP_LDPC_CODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	orl	%eax, 16(%rbx)
	movq	_IEEE80211_VHT_CAP_SHORT_GI_160@GOTPCREL(%rip), %rax
	movq	_IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, 12(%rbx)
	movabsq	$64424510468, %rax              ## imm = 0xF00000404
	movq	%rax, 4(%rbx)
	movl	$-1, (%rbx)
	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
	orl	%r12d, %eax
	movl	%eax, (%r13)
	movq	_mt7615_rates@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_mt76_register_device
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	12(%rbx), %r15
	leaq	20(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_mt7615_init_txpower
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt7615_init_txpower
	movq	_MT_TXP_MAX_BUF_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7615_init_debugfs            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mt7615_mac_work,4,2            ## @mt7615_mac_work
	.comm	_if_comb,4,2                    ## @if_comb
	.comm	_mt7615_regd_notifier,4,2       ## @mt7615_regd_notifier
	.comm	_WIPHY_FLAG_HAS_CHANNEL_SWITCH,4,2 ## @WIPHY_FLAG_HAS_CHANNEL_SWITCH
	.comm	_SUPPORTS_REORDERING_BUFFER,4,2 ## @SUPPORTS_REORDERING_BUFFER
	.comm	_TX_STATUS_NO_AMPDU_LEN,4,2     ## @TX_STATUS_NO_AMPDU_LEN
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ## @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_160,4,2 ## @IEEE80211_VHT_CAP_SHORT_GI_160
	.comm	_IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454,4,2 ## @IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ## @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ,4,2 ## @IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_mt7615_rates,4,2               ## @mt7615_rates
	.comm	_MT_TXP_MAX_BUF_NUM,4,2         ## @MT_TXP_MAX_BUF_NUM
	.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 mt7615_register_device
lCPI0_0:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	7                               ; 0x7
	.long	11                              ; 0xb
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	4294967295                      ; 0xffffffff
	.long	1028                            ; 0x404
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt7615_register_device
	.p2align	2
_mt7615_register_device:                ; @mt7615_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	x20, x0
	ldr	x24, [x0, #32]
	mov	x0, x19
	bl	_mt7615_init_hardware
	cbnz	w0, LBB0_2
; %bb.1:
	add	x21, x19, #4
	add	x0, x19, #28
Lloh0:
	adrp	x8, _mt7615_mac_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mt7615_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]
	movi.2s	v0, #4
	str	d0, [x20, #16]
Lloh5:
	adrp	x8, _if_comb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _if_comb@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x24, #16]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _mt7615_regd_notifier@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mt7615_regd_notifier@GOTPAGEOFF]
	str	w0, [x24, #12]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WIPHY_FLAG_HAS_CHANNEL_SWITCH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x24, #4]
	orr	w9, w10, w9
	stp	w9, w8, [x24, #4]
Lloh14:
	adrp	x8, _SUPPORTS_REORDERING_BUFFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUPPORTS_REORDERING_BUFFER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh17:
	adrp	x8, _TX_STATUS_NO_AMPDU_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TX_STATUS_NO_AMPDU_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_hw_set
Lloh20:
	adrp	x8, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w9, w9, w8
	str	w9, [x19, #24]
	mov	x22, x19
	ldr	w9, [x22, #12]!
	ldr	w10, [x19, #16]
	orr	w8, w10, w8
Lloh23:
	adrp	x10, _IEEE80211_VHT_CAP_SHORT_GI_160@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_SHORT_GI_160@GOTPAGEOFF]
	str	w8, [x19, #16]
Lloh25:
	ldr	w8, [x10]
Lloh26:
	adrp	x10, _IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh29:
	adrp	x10, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGE
Lloh30:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh32:
	adrp	x10, _IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPAGE
Lloh33:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [x22]
	mov	w8, #15
	str	w8, [x19, #8]
Lloh35:
	adrp	x8, lCPI0_1@PAGE
Lloh36:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19]
Lloh37:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_BIT
	mov	x23, x0
Lloh40:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w23
	str	w8, [x24]
Lloh43:
	adrp	x8, _mt7615_rates@GOTPAGE
Lloh44:
	ldr	x8, [x8, _mt7615_rates@GOTPAGEOFF]
Lloh45:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	w1, #1
	mov	x2, x23
	bl	_mt76_register_device
	cbz	w0, LBB0_3
LBB0_2:
	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_3:
	add	x1, x19, #20
	mov	x0, x19
	bl	_mt7615_init_txpower
	mov	x0, x19
	mov	x1, x22
	bl	_mt7615_init_txpower
Lloh46:
	adrp	x8, _MT_TXP_MAX_BUF_NUM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MT_TXP_MAX_BUF_NUM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	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	_mt7615_init_debugfs
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdrp	Lloh35, Lloh37
	.loh AdrpLdr	Lloh35, Lloh36
	.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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_mt7615_mac_work,4,2            ; @mt7615_mac_work
	.comm	_if_comb,4,2                    ; @if_comb
	.comm	_mt7615_regd_notifier,4,2       ; @mt7615_regd_notifier
	.comm	_WIPHY_FLAG_HAS_CHANNEL_SWITCH,4,2 ; @WIPHY_FLAG_HAS_CHANNEL_SWITCH
	.comm	_SUPPORTS_REORDERING_BUFFER,4,2 ; @SUPPORTS_REORDERING_BUFFER
	.comm	_TX_STATUS_NO_AMPDU_LEN,4,2     ; @TX_STATUS_NO_AMPDU_LEN
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ; @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_VHT_CAP_SHORT_GI_160,4,2 ; @IEEE80211_VHT_CAP_SHORT_GI_160
	.comm	_IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454,4,2 ; @IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ; @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ,4,2 ; @IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_mt7615_rates,4,2               ; @mt7615_rates
	.comm	_MT_TXP_MAX_BUF_NUM,4,2         ; @MT_TXP_MAX_BUF_NUM
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
.subsections_via_symbols
