	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_regd_apply_hw_cap_flags
_rtw_regd_apply_hw_cap_flags:           ## @rtw_regd_apply_hw_cap_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_wiphy_to_ieee80211_hw
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movq	_RTW_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_2
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %r10
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r10,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.3:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.4:
	movq	8(%rcx), %rdx
	cmpl	$8, %eax
	jb	LBB0_5
## %bb.6:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_9
## %bb.7:
	leaq	(%rdx,%rax,4), %rcx
	cmpq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rcx
	jbe	LBB0_9
LBB0_5:
	xorl	%esi, %esi
LBB0_16:
	movq	%rsi, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %rcx
	andq	$3, %rcx
	je	LBB0_19
## %bb.17:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	orl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	decq	%rcx
	jne	LBB0_18
LBB0_19:
	cmpq	$3, %r8
	jb	LBB0_22
## %bb.20:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edi
	orl	%edi, (%rdx,%rsi,4)
	movl	(%rcx), %edi
	orl	%edi, 4(%rdx,%rsi,4)
	movl	(%rcx), %edi
	orl	%edi, 8(%rdx,%rsi,4)
	movl	(%rcx), %edi
	orl	%edi, 12(%rdx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_21
	jmp	LBB0_22
LBB0_9:
	movl	%eax, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	movq	%r9, %rdi
	andq	$-2, %rdi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rbx,4), %xmm1
	movdqu	16(%rdx,%rbx,4), %xmm2
	movdqu	32(%rdx,%rbx,4), %xmm3
	movdqu	48(%rdx,%rbx,4), %xmm4
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rdx,%rbx,4)
	movdqu	%xmm2, 16(%rdx,%rbx,4)
	por	%xmm0, %xmm3
	por	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rdx,%rbx,4)
	movdqu	%xmm4, 48(%rdx,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdi
	jne	LBB0_11
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	testb	$1, %r9b
	je	LBB0_15
## %bb.14:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	(%rdx,%rbx,4), %xmm1
	movdqu	16(%rdx,%rbx,4), %xmm2
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rdx,%rbx,4)
	movdqu	%xmm2, 16(%rdx,%rbx,4)
LBB0_15:
	cmpq	%rax, %rsi
	jne	LBB0_16
LBB0_22:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r10,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.23:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.24:
	movq	8(%rcx), %rcx
	cmpl	$8, %eax
	jb	LBB0_25
## %bb.26:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_29
## %bb.27:
	leaq	(%rcx,%rax,4), %rdx
	cmpq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rdx
	jbe	LBB0_29
LBB0_25:
	xorl	%edx, %edx
LBB0_36:
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %rdi
	andq	$3, %rdi
	je	LBB0_39
## %bb.37:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	orl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_38
LBB0_39:
	cmpq	$3, %r8
	jb	LBB0_1
## %bb.40:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	orl	%edi, (%rcx,%rdx,4)
	movl	(%rsi), %edi
	orl	%edi, 4(%rcx,%rdx,4)
	movl	(%rsi), %edi
	orl	%edi, 8(%rcx,%rdx,4)
	movl	(%rsi), %edi
	orl	%edi, 12(%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_41
	jmp	LBB0_1
LBB0_29:
	movl	%eax, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.30:
	movq	%rsi, %rbx
	andq	$-2, %rbx
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,4), %xmm1
	movdqu	16(%rcx,%rdi,4), %xmm2
	movdqu	32(%rcx,%rdi,4), %xmm3
	movdqu	48(%rcx,%rdi,4), %xmm4
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rdi,4)
	movdqu	%xmm2, 16(%rcx,%rdi,4)
	por	%xmm0, %xmm3
	por	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rcx,%rdi,4)
	movdqu	%xmm4, 48(%rcx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rbx
	jne	LBB0_31
	jmp	LBB0_33
LBB0_32:
	xorl	%edi, %edi
LBB0_33:
	testb	$1, %sil
	je	LBB0_35
## %bb.34:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	(%rcx,%rdi,4), %xmm1
	movdqu	16(%rcx,%rdi,4), %xmm2
	por	%xmm0, %xmm1
	por	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rdi,4)
	movdqu	%xmm2, 16(%rcx,%rdi,4)
LBB0_35:
	cmpq	%rax, %rdx
	je	LBB0_1
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ## @RTW_CHANNEL_WIDTH_80
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_CHAN_NO_80MHZ,4,2    ## @IEEE80211_CHAN_NO_80MHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_rtw_regd_apply_hw_cap_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_regd_apply_hw_cap_flags
_rtw_regd_apply_hw_cap_flags:           ; @rtw_regd_apply_hw_cap_flags
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_wiphy_to_ieee80211_hw
	ldr	x8, [x0]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _RTW_CHANNEL_WIDTH_80@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_12
; %bb.3:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.4:
	ldr	x11, [x9, #8]
Lloh6:
	adrp	x9, _IEEE80211_CHAN_NO_80MHZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_80MHZ@GOTPAGEOFF]
	cmp	w10, #16
	b.lo	LBB0_9
; %bb.5:
	add	x12, x11, x10, lsl #2
	add	x13, x9, #4
	cmp	x11, x13
	ccmp	x12, x9, #0, lo
	b.hi	LBB0_9
; %bb.6:
	and	x12, x10, #0xfffffff0
	ld1r.4s	{ v0 }, [x9]
	add	x13, x11, #32
	mov	x14, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13, #-32]
	ldp	q3, q4, [x13]
	orr.16b	v1, v1, v0
	orr.16b	v2, v2, v0
	orr.16b	v3, v3, v0
	orr.16b	v4, v4, v0
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_7
; %bb.8:
	cmp	x12, x10
	b.ne	LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x12, #0
LBB0_10:
	add	x11, x11, x12, lsl #2
	sub	x10, x10, x12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	ldr	w13, [x11]
	orr	w12, w13, w12
	str	w12, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:
Lloh8:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_1
; %bb.13:
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.14:
	ldr	x9, [x9, #8]
	cmp	w8, #16
	b.lo	LBB0_19
; %bb.15:
	add	x10, x9, x8, lsl #2
Lloh11:
	adrp	x11, _IEEE80211_CHAN_NO_80MHZ@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IEEE80211_CHAN_NO_80MHZ@GOTPAGEOFF]
	add	x12, x11, #4
	cmp	x9, x12
	ccmp	x10, x11, #0, lo
	b.hi	LBB0_19
; %bb.16:
	and	x10, x8, #0xfffffff0
	ld1r.4s	{ v0 }, [x11]
	add	x11, x9, #32
	mov	x12, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	orr.16b	v1, v1, v0
	orr.16b	v2, v2, v0
	orr.16b	v3, v3, v0
	orr.16b	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_17
; %bb.18:
	cmp	x10, x8
	b.ne	LBB0_20
	b	LBB0_1
LBB0_19:
	mov	x10, #0
LBB0_20:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
Lloh13:
	adrp	x10, _IEEE80211_CHAN_NO_80MHZ@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_80MHZ@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	ldr	w12, [x9]
	orr	w11, w12, w11
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_CHANNEL_WIDTH_80,4,2       ; @RTW_CHANNEL_WIDTH_80
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_CHAN_NO_80MHZ,4,2    ; @IEEE80211_CHAN_NO_80MHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_rtw_regd_apply_hw_cap_flags
.subsections_via_symbols
