	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function media2mode
_media2mode:                            ## @media2mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_IFM_MODE
	movl	%eax, %ecx
	addl	$-128, %ecx
	xorl	%eax, %eax
	cmpl	$6, %ecx
	ja	LBB0_10
## %bb.1:
	movslq	%ecx, %rcx
	leaq	l_switch.table.media2mode(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r15)
	movq	_IFM_IEEE80211_TURBO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rbx)
	je	LBB0_9
## %bb.2:
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	movq	_IEEE80211_F_TURBOP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_IEEE80211_MODE_STURBO_A@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_IEEE80211_MODE_11G@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.7:
	movq	_IEEE80211_MODE_TURBO_G@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_IEEE80211_MODE_TURBO_A@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MODE_11A,8,3         ## @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11B,8,3         ## @IEEE80211_MODE_11B
	.comm	_IEEE80211_MODE_11G,8,3         ## @IEEE80211_MODE_11G
	.comm	_IEEE80211_MODE_FH,8,3          ## @IEEE80211_MODE_FH
	.comm	_IEEE80211_MODE_11NA,8,3        ## @IEEE80211_MODE_11NA
	.comm	_IEEE80211_MODE_11NG,8,3        ## @IEEE80211_MODE_11NG
	.comm	_IEEE80211_MODE_AUTO,8,3        ## @IEEE80211_MODE_AUTO
	.comm	_IFM_IEEE80211_TURBO,4,2        ## @IFM_IEEE80211_TURBO
	.comm	_IEEE80211_F_TURBOP,4,2         ## @IEEE80211_F_TURBOP
	.comm	_IEEE80211_MODE_TURBO_A,8,3     ## @IEEE80211_MODE_TURBO_A
	.comm	_IEEE80211_MODE_STURBO_A,8,3    ## @IEEE80211_MODE_STURBO_A
	.comm	_IEEE80211_MODE_TURBO_G,8,3     ## @IEEE80211_MODE_TURBO_G
	.no_dead_strip	_media2mode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.media2mode
l_switch.table.media2mode:
	.quad	_IEEE80211_MODE_FH
	.quad	_IEEE80211_MODE_11NG
	.quad	_IEEE80211_MODE_11NA
	.quad	_IEEE80211_MODE_11G
	.quad	_IEEE80211_MODE_11B
	.quad	_IEEE80211_MODE_11A
	.quad	_IEEE80211_MODE_AUTO

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function media2mode
_media2mode:                            ; @media2mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_IFM_MODE
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.media2mode@PAGE
Lloh1:
	add	x9, x9, l_switch.table.media2mode@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w9, [x21]
Lloh2:
	adrp	x10, _IFM_IEEE80211_TURBO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IFM_IEEE80211_TURBO@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.2:
Lloh5:
	adrp	x9, _IEEE80211_MODE_11A@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _IEEE80211_F_TURBOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_F_TURBOP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IEEE80211_MODE_TURBO_A@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_MODE_TURBO_A@GOTPAGEOFF]
Lloh13:
	adrp	x10, _IEEE80211_MODE_STURBO_A@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEEE80211_MODE_STURBO_A@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x9, _IEEE80211_MODE_11G@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_MODE_11G@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh18:
	adrp	x8, _IEEE80211_MODE_TURBO_G@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_MODE_TURBO_G@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MODE_11A,8,3         ; @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11B,8,3         ; @IEEE80211_MODE_11B
	.comm	_IEEE80211_MODE_11G,8,3         ; @IEEE80211_MODE_11G
	.comm	_IEEE80211_MODE_FH,8,3          ; @IEEE80211_MODE_FH
	.comm	_IEEE80211_MODE_11NA,8,3        ; @IEEE80211_MODE_11NA
	.comm	_IEEE80211_MODE_11NG,8,3        ; @IEEE80211_MODE_11NG
	.comm	_IEEE80211_MODE_AUTO,8,3        ; @IEEE80211_MODE_AUTO
	.comm	_IFM_IEEE80211_TURBO,4,2        ; @IFM_IEEE80211_TURBO
	.comm	_IEEE80211_F_TURBOP,4,2         ; @IEEE80211_F_TURBOP
	.comm	_IEEE80211_MODE_TURBO_A,8,3     ; @IEEE80211_MODE_TURBO_A
	.comm	_IEEE80211_MODE_STURBO_A,8,3    ; @IEEE80211_MODE_STURBO_A
	.comm	_IEEE80211_MODE_TURBO_G,8,3     ; @IEEE80211_MODE_TURBO_G
	.no_dead_strip	_media2mode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.media2mode
l_switch.table.media2mode:
	.quad	_IEEE80211_MODE_FH
	.quad	_IEEE80211_MODE_11NG
	.quad	_IEEE80211_MODE_11NA
	.quad	_IEEE80211_MODE_11G
	.quad	_IEEE80211_MODE_11B
	.quad	_IEEE80211_MODE_11A
	.quad	_IEEE80211_MODE_AUTO

.subsections_via_symbols
