	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function promote
_promote:                               ## @promote
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_ifmr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edi
	callq	_IFM_MODE
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_IFM_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	_IFM_IEEE80211_11B@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.4:
	movq	_IEEE80211_CHAN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IEEE80211_CHAN_G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_canpromote
	movl	%eax, %r14d
LBB0_5:
	movq	_IFM_IEEE80211_11G@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_9
## %bb.6:
	movq	_htconf@GOTPCREL(%rip), %r12
	testb	$1, (%r12)
	je	LBB0_9
## %bb.7:
	movq	_IEEE80211_CHAN_G@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_IEEE80211_CHAN_HT20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movl	%r14d, %edi
	callq	_canpromote
	movl	%eax, %r14d
	testb	$2, (%r12)
	je	LBB0_9
## %bb.8:
	movl	(%r15), %esi
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movl	%r14d, %edi
	callq	_canpromote
	movl	(%r15), %esi
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%esi, %edx
	movl	%eax, %edi
	callq	_canpromote
	movl	%eax, %r14d
LBB0_9:
	movq	_IFM_IEEE80211_11A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_12
## %bb.10:
	movq	_htconf@GOTPCREL(%rip), %rbx
	testb	$1, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	_IEEE80211_CHAN_A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_IEEE80211_CHAN_HT20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movl	%r14d, %edi
	callq	_canpromote
	movl	%eax, %r14d
	testb	$2, (%rbx)
	jne	LBB0_13
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%r15), %esi
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movl	%r14d, %edi
	callq	_canpromote
	movl	(%r15), %esi
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%esi, %edx
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_canpromote                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ifmr,8,3                       ## @ifmr
	.comm	_IFM_AUTO,4,2                   ## @IFM_AUTO
	.comm	_IFM_IEEE80211_11B,4,2          ## @IFM_IEEE80211_11B
	.comm	_IEEE80211_CHAN_B,4,2           ## @IEEE80211_CHAN_B
	.comm	_IEEE80211_CHAN_G,4,2           ## @IEEE80211_CHAN_G
	.comm	_IFM_IEEE80211_11G,4,2          ## @IFM_IEEE80211_11G
	.comm	_htconf,4,2                     ## @htconf
	.comm	_IEEE80211_CHAN_HT20,4,2        ## @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_CHAN_HT40D,4,2       ## @IEEE80211_CHAN_HT40D
	.comm	_IEEE80211_CHAN_HT40U,4,2       ## @IEEE80211_CHAN_HT40U
	.comm	_IFM_IEEE80211_11A,4,2          ## @IFM_IEEE80211_11A
	.comm	_IEEE80211_CHAN_A,4,2           ## @IEEE80211_CHAN_A
	.no_dead_strip	_promote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function promote
_promote:                               ; @promote
	.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, x0
Lloh0:
	adrp	x8, _ifmr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifmr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x8]
	bl	_IFM_MODE
	mov	x20, x0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _IFM_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFM_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_3:
Lloh6:
	adrp	x8, _IFM_IEEE80211_11B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFM_IEEE80211_11B@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _IEEE80211_CHAN_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_CHAN_B@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _IEEE80211_CHAN_G@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_CHAN_G@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_canpromote
	mov	x19, x0
LBB0_5:
Lloh15:
	adrp	x8, _IFM_IEEE80211_11G@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFM_IEEE80211_11G@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x21, _htconf@GOTPAGE
Lloh19:
	ldr	x21, [x21, _htconf@GOTPAGEOFF]
	cmp	w20, w8
	b.eq	LBB0_9
; %bb.6:
	ldrb	w8, [x21]
	tbz	w8, #0, LBB0_9
; %bb.7:
Lloh20:
	adrp	x22, _IEEE80211_CHAN_G@GOTPAGE
Lloh21:
	ldr	x22, [x22, _IEEE80211_CHAN_G@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh22:
	adrp	x8, _IEEE80211_CHAN_HT20@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IEEE80211_CHAN_HT20@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w2, w8, w1
	mov	x0, x19
	bl	_canpromote
	mov	x19, x0
	ldrb	w8, [x21]
	tbz	w8, #1, LBB0_9
; %bb.8:
	ldr	w1, [x22]
Lloh25:
	adrp	x8, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w2, w8, w1
	mov	x0, x19
	bl	_canpromote
	ldr	w1, [x22]
Lloh28:
	adrp	x8, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w2, w8, w1
	bl	_canpromote
	mov	x19, x0
LBB0_9:
Lloh31:
	adrp	x8, _IFM_IEEE80211_11A@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IFM_IEEE80211_11A@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_12
; %bb.10:
	ldrb	w8, [x21]
	tbz	w8, #0, LBB0_12
; %bb.11:
Lloh34:
	adrp	x20, _IEEE80211_CHAN_A@GOTPAGE
Lloh35:
	ldr	x20, [x20, _IEEE80211_CHAN_A@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh36:
	adrp	x8, _IEEE80211_CHAN_HT20@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IEEE80211_CHAN_HT20@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w2, w8, w1
	mov	x0, x19
	bl	_canpromote
	mov	x19, x0
	ldrb	w8, [x21]
	tbnz	w8, #1, LBB0_13
LBB0_12:
	mov	x0, x19
	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
LBB0_13:
	ldr	w1, [x20]
Lloh39:
	adrp	x8, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w2, w8, w1
	mov	x0, x19
	bl	_canpromote
Lloh42:
	adrp	x8, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh44:
	ldr	w8, [x8]
	orr	w2, w8, w1
	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
	b	_canpromote
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ifmr,8,3                       ; @ifmr
	.comm	_IFM_AUTO,4,2                   ; @IFM_AUTO
	.comm	_IFM_IEEE80211_11B,4,2          ; @IFM_IEEE80211_11B
	.comm	_IEEE80211_CHAN_B,4,2           ; @IEEE80211_CHAN_B
	.comm	_IEEE80211_CHAN_G,4,2           ; @IEEE80211_CHAN_G
	.comm	_IFM_IEEE80211_11G,4,2          ; @IFM_IEEE80211_11G
	.comm	_htconf,4,2                     ; @htconf
	.comm	_IEEE80211_CHAN_HT20,4,2        ; @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_CHAN_HT40D,4,2       ; @IEEE80211_CHAN_HT40D
	.comm	_IEEE80211_CHAN_HT40U,4,2       ; @IEEE80211_CHAN_HT40U
	.comm	_IFM_IEEE80211_11A,4,2          ; @IFM_IEEE80211_11A
	.comm	_IEEE80211_CHAN_A,4,2           ; @IEEE80211_CHAN_A
	.no_dead_strip	_promote
.subsections_via_symbols
