	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_init_sband
_mt76_init_sband:                       ## @mt76_init_sband
	.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	%r9d, %r15d
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leal	(,%r13,4), %eax
	movl	8(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 8(%rbx)
	movl	%r13d, (%rbx)
	movq	%r12, 48(%rbx)
	movl	%r15d, 4(%rbx)
	movl	$1, 16(%rbx)
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_HT_CAP_GRN_FLD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movl	%edx, 20(%rbx)
	movq	32(%rbx), %rcx
	movl	$255, (%rcx)
	movl	$1, 16(%rcx)
	movq	_IEEE80211_HT_MCS_TX_DEFINED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movq	_IEEE80211_HT_MAX_AMPDU_64K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movq	_IEEE80211_HT_MPDU_DENSITY_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	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	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_GRN_FLD,4,2   ## @IEEE80211_HT_CAP_GRN_FLD
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_RX_STBC_SHIFT,4,2 ## @IEEE80211_HT_CAP_RX_STBC_SHIFT
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ## @IEEE80211_HT_MCS_TX_DEFINED
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ## @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_2,4,2 ## @IEEE80211_HT_MPDU_DENSITY_2
	.no_dead_strip	_mt76_init_sband
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_init_sband
_mt76_init_sband:                       ; @mt76_init_sband
	.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, x5
	mov	x21, x4
	mov	x23, x3
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	lsl	w2, w3, #2
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x1, x8
	bl	_devm_kmemdup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	stp	w23, w22, [x20]
	mov	w9, #1
Lloh3:
	adrp	x10, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _IEEE80211_HT_CAP_GRN_FLD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IEEE80211_HT_CAP_GRN_FLD@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh9:
	adrp	x11, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh12:
	adrp	x11, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh15:
	adrp	x11, _IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IEEE80211_HT_CAP_RX_STBC_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	lsl	w11, w9, w11
	orr	w10, w10, w11
	stp	w9, w10, [x20, #16]
	ldr	x10, [x20, #32]
	mov	w11, #255
	str	w11, [x10]
	str	w9, [x10, #16]
	str	x8, [x20, #8]
Lloh18:
	adrp	x9, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_HT_MCS_TX_DEFINED@GOTPAGEOFF]
	str	x21, [x20, #48]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x20, #40]
Lloh21:
	adrp	x9, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_HT_MAX_AMPDU_64K@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _IEEE80211_HT_MPDU_DENSITY_2@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IEEE80211_HT_MPDU_DENSITY_2@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	stp	w10, w9, [x20, #24]
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_GRN_FLD,4,2   ; @IEEE80211_HT_CAP_GRN_FLD
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_RX_STBC_SHIFT,4,2 ; @IEEE80211_HT_CAP_RX_STBC_SHIFT
	.comm	_IEEE80211_HT_MCS_TX_DEFINED,4,2 ; @IEEE80211_HT_MCS_TX_DEFINED
	.comm	_IEEE80211_HT_MAX_AMPDU_64K,4,2 ; @IEEE80211_HT_MAX_AMPDU_64K
	.comm	_IEEE80211_HT_MPDU_DENSITY_2,4,2 ; @IEEE80211_HT_MPDU_DENSITY_2
	.no_dead_strip	_mt76_init_sband
.subsections_via_symbols
