	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_media_setup
_ieee80211_media_setup:                 ## @ieee80211_media_setup
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	%r8d, %edx
	movl	%r9d, %ecx
	callq	_ifmedia_init
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_IEEE80211_MODE_AUTO@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_10
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_IEEE80211_MODE_AUTO@GOTPCREL(%rip), %r13
	jae	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_26 Depth 3
	movl	8(%r12), %edi
	movl	%r14d, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_31
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IFM_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_addmedia
	movl	(%r13), %eax
	cmpq	%rax, %r14
	je	LBB0_31
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	%r14, %rcx
	shlq	$4, %rcx
	cmpl	$0, (%rax,%rcx)
	jle	LBB0_31
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rcx), %rbx
	leaq	(%rax,%rcx), %r13
	addq	$8, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-80(%rbp), %rdx
	movl	%eax, (%rdx,%rcx,4)
	incl	-88(%rbp)
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r15d, %eax
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%edx, %ecx
	cmovgl	%ecx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_31
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_26 Depth 3
	movq	(%r13), %rax
	movl	(%rax,%r12,4), %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_ieee80211_rate2media
	testl	%eax, %eax
	je	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_addmedia
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movl	-88(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-80(%rbp), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%eax, (%rsi,%rdx,4)
	je	LBB0_9
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=3
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edx, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	cmpl	%ecx, %edx
	je	LBB0_28
	jmp	LBB0_29
LBB0_10:
	cmpl	$0, -88(%rbp)
	jle	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	-88(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_ieee80211_rate2media
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r13), %r15d
	movl	%eax, %edi
	callq	_IFM_SUBTYPE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_addmedia
	jmp	LBB0_14
LBB0_15:
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r14d
	jbe	LBB0_16
LBB0_20:
	movl	8(%r12), %edi
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_isset
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	8(%r12), %edi
	movl	(%r13), %esi
	callq	_isset
	testq	%rax, %rax
	je	LBB0_37
LBB0_22:
	movq	_IEEE80211_MODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IFM_IEEE80211_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_addmedia
	movslq	(%r12), %rax
	leaq	-1(,%rax,8), %rax
	movl	4(%r12), %edx
	movq	_IEEE80211_HTCAP_CHWIDTH40@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_33
## %bb.23:
	movq	_IEEE80211_HTCAP_SHORTGI40@GOTPCREL(%rip), %rsi
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%edx, (%rsi)
	je	LBB0_32
## %bb.24:
	shlq	$4, %rax
	addq	%rax, %rcx
	jmp	LBB0_36
LBB0_16:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%r14d
	cmpl	(%r13), %r14d
	ja	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	%r14d, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_IFM_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_addmedia
	movq	_IFM_IEEE80211_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_addmedia
	jmp	LBB0_19
LBB0_33:
	movq	_IEEE80211_HTCAP_SHORTGI20@GOTPCREL(%rip), %rsi
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	testl	%edx, (%rsi)
	je	LBB0_35
## %bb.34:
	shlq	$4, %rax
	addq	%rax, %rcx
	addq	$8, %rcx
	jmp	LBB0_36
LBB0_32:
	shlq	$4, %rax
	addq	%rax, %rcx
	addq	$4, %rcx
	jmp	LBB0_36
LBB0_35:
	shlq	$4, %rax
	addq	%rax, %rcx
	addq	$12, %rcx
LBB0_36:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx), %eax
	cmpl	%edx, %eax
	cmovgl	%eax, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
LBB0_37:
	movq	_IEEE80211_MODE_VHT_5GHZ@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r14d
	jbe	LBB0_38
LBB0_42:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=1
	incl	%r14d
	cmpl	(%r13), %r14d
	ja	LBB0_42
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	%r14d, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	_IFM_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_addmedia
	movq	_IFM_IEEE80211_VHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_addmedia
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MODE_AUTO,4,2        ## @IEEE80211_MODE_AUTO
	.comm	_IEEE80211_MODE_11NA,4,2        ## @IEEE80211_MODE_11NA
	.comm	_IFM_AUTO,4,2                   ## @IFM_AUTO
	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.comm	_IEEE80211_MODE_11NG,4,2        ## @IEEE80211_MODE_11NG
	.comm	_IFM_IEEE80211_MCS,4,2          ## @IFM_IEEE80211_MCS
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ## @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTCAP_SHORTGI40,4,2  ## @IEEE80211_HTCAP_SHORTGI40
	.comm	_ieee80211_htrates,8,3          ## @ieee80211_htrates
	.comm	_IEEE80211_HTCAP_SHORTGI20,4,2  ## @IEEE80211_HTCAP_SHORTGI20
	.comm	_IEEE80211_MODE_VHT_5GHZ,4,2    ## @IEEE80211_MODE_VHT_5GHZ
	.comm	_IFM_IEEE80211_VHT,4,2          ## @IFM_IEEE80211_VHT
	.no_dead_strip	_ieee80211_media_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_media_setup
_ieee80211_media_setup:                 ; @ieee80211_media_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #0
	mov	x2, x4
	mov	x3, x5
	bl	_ifmedia_init
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x28, _IEEE80211_MODE_AUTO@GOTPAGE
Lloh1:
	ldr	x28, [x28, _IEEE80211_MODE_AUTO@GOTPAGEOFF]
	ldr	w23, [x28]
Lloh2:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w23, w8
	b.hs	LBB0_17
; %bb.1:
	mov	w24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
Lloh5:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x23, x8
Lloh8:
	adrp	x28, _IEEE80211_MODE_AUTO@GOTPAGE
Lloh9:
	ldr	x28, [x28, _IEEE80211_MODE_AUTO@GOTPAGEOFF]
	b.hs	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	w0, [x22, #8]
	mov	x1, x23
	bl	_isclr
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _IFM_AUTO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IFM_AUTO@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_addmedia
	ldr	w8, [x28]
	cmp	x23, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #16]
	add	x27, x8, x23, lsl #4
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	add	x28, x27, #8
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x10, [sp, #8]
	str	w8, [x10, x9, lsl #2]
	ldr	w8, [sp]
	add	w8, w8, #1
	str	w8, [sp]
Lloh13:
	adrp	x8, _IEEE80211_RATE_VAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w25
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w8, w24
	csel	w24, w8, w24, gt
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x27]
	cmp	x26, x8
	b.ge	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x8, [x28]
	ldr	w25, [x8, x26, lsl #2]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	bl	_ieee80211_rate2media
	cbz	w0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_addmedia
Lloh16:
	adrp	x8, _IEEE80211_RATE_VAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w25
	ldr	w9, [sp]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x10, #0
	ldr	x11, [sp, #8]
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w8
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_13
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	w10, #0
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=2
	cmp	w10, w9
	b.eq	LBB0_7
	b	LBB0_8
LBB0_17:
	mov	w24, #0
LBB0_18:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x26, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [sp]
	cmp	x26, x8
	b.ge	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	w1, [x8, x26, lsl #2]
	ldr	w2, [x28]
	mov	x0, x22
	bl	_ieee80211_rate2media
	cbz	w0, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w25, [x28]
	bl	_IFM_SUBTYPE
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x25
	bl	_addmedia
	b	LBB0_20
LBB0_23:
Lloh19:
	adrp	x25, _IEEE80211_MODE_11NG@GOTPAGE
Lloh20:
	ldr	x25, [x25, _IEEE80211_MODE_11NG@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w23, w8
	b.ls	LBB0_28
LBB0_24:
	ldr	w0, [x22, #8]
Lloh21:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_isset
	cbnz	x0, LBB0_26
; %bb.25:
	ldr	w0, [x22, #8]
	ldr	w1, [x25]
	bl	_isset
	cbz	x0, LBB0_34
LBB0_26:
	ldr	w3, [x28]
Lloh24:
	adrp	x8, _IFM_IEEE80211_MCS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IFM_IEEE80211_MCS@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_addmedia
	ldp	w8, w9, [x22]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	lsl	x8, x8, #3
	sub	x8, x8, #1
Lloh27:
	adrp	x10, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_32
; %bb.27:
Lloh30:
	adrp	x10, _IEEE80211_HTCAP_SHORTGI40@GOTPAGE
Lloh31:
	ldr	x10, [x10, _IEEE80211_HTCAP_SHORTGI40@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w9
Lloh33:
	adrp	x9, _ieee80211_htrates@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ieee80211_htrates@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x8, x9, x8, lsl #4
	add	x9, x8, #4
	b	LBB0_33
LBB0_28:
Lloh36:
	adrp	x26, _IFM_AUTO@GOTPAGE
Lloh37:
	ldr	x26, [x26, _IFM_AUTO@GOTPAGEOFF]
Lloh38:
	adrp	x27, _IFM_IEEE80211_MCS@GOTPAGE
Lloh39:
	ldr	x27, [x27, _IFM_IEEE80211_MCS@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	w23, w23, #1
	ldr	w8, [x25]
	cmp	w23, w8
	b.hi	LBB0_24
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #8]
	mov	x1, x23
	bl	_isclr
	cbnz	x0, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w4, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_addmedia
	ldr	w4, [x27]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_addmedia
	b	LBB0_29
LBB0_32:
Lloh40:
	adrp	x10, _IEEE80211_HTCAP_SHORTGI20@GOTPAGE
Lloh41:
	ldr	x10, [x10, _IEEE80211_HTCAP_SHORTGI20@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	tst	w10, w9
Lloh43:
	adrp	x9, _ieee80211_htrates@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ieee80211_htrates@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	add	x8, x9, x8, lsl #4
	add	x9, x8, #12
	add	x8, x8, #8
LBB0_33:
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	cmp	w8, w24
	csel	w24, w8, w24, gt
LBB0_34:
Lloh46:
	adrp	x25, _IEEE80211_MODE_VHT_5GHZ@GOTPAGE
Lloh47:
	ldr	x25, [x25, _IEEE80211_MODE_VHT_5GHZ@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w23, w8
	b.ls	LBB0_36
LBB0_35:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_36:
Lloh48:
	adrp	x26, _IFM_AUTO@GOTPAGE
Lloh49:
	ldr	x26, [x26, _IFM_AUTO@GOTPAGEOFF]
Lloh50:
	adrp	x27, _IFM_IEEE80211_VHT@GOTPAGE
Lloh51:
	ldr	x27, [x27, _IFM_IEEE80211_VHT@GOTPAGEOFF]
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	add	w23, w23, #1
	ldr	w8, [x25]
	cmp	w23, w8
	b.hi	LBB0_35
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #8]
	mov	x1, x23
	bl	_isclr
	cbnz	x0, LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	w4, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_addmedia
	ldr	w4, [x27]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_addmedia
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MODE_AUTO,4,2        ; @IEEE80211_MODE_AUTO
	.comm	_IEEE80211_MODE_11NA,4,2        ; @IEEE80211_MODE_11NA
	.comm	_IFM_AUTO,4,2                   ; @IFM_AUTO
	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.comm	_IEEE80211_MODE_11NG,4,2        ; @IEEE80211_MODE_11NG
	.comm	_IFM_IEEE80211_MCS,4,2          ; @IFM_IEEE80211_MCS
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ; @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTCAP_SHORTGI40,4,2  ; @IEEE80211_HTCAP_SHORTGI40
	.comm	_ieee80211_htrates,8,3          ; @ieee80211_htrates
	.comm	_IEEE80211_HTCAP_SHORTGI20,4,2  ; @IEEE80211_HTCAP_SHORTGI20
	.comm	_IEEE80211_MODE_VHT_5GHZ,4,2    ; @IEEE80211_MODE_VHT_5GHZ
	.comm	_IFM_IEEE80211_VHT,4,2          ; @IFM_IEEE80211_VHT
	.no_dead_strip	_ieee80211_media_setup
.subsections_via_symbols
