	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_setuptxparms    ## -- Begin function ieee80211_node_setuptxparms
	.p2align	4, 0x90
_ieee80211_node_setuptxparms:           ## @ieee80211_node_setuptxparms
	.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, %rbx
	movq	24(%rdi), %r14
	movl	(%rdi), %eax
	movq	_IEEE80211_NODE_VHT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_5GHZ
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	_IEEE80211_MODE_VHT_2GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_3:
	movq	_IEEE80211_NODE_HT@GOTPCREL(%rip), %rcx
	movl	16(%rbx), %edi
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.4:
	callq	_IEEE80211_IS_CHAN_5GHZ
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_6:
	movq	_IEEE80211_MODE_VHT_5GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_7:
	callq	_IEEE80211_IS_CHAN_ST
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_IEEE80211_MODE_STURBO_A@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_9:
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_10:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_HALF
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_IEEE80211_MODE_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_12:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_QUARTER
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_IEEE80211_MODE_QUARTER@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_A
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_108G
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	movq	_IEEE80211_NODE_ERP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_20
## %bb.19:
	movq	_IEEE80211_MODE_11B@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_IEEE80211_MODE_11G@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	shlq	$2, %rax
	addq	(%r14), %rax
	movq	%rax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NODE_VHT,4,2         ## @IEEE80211_NODE_VHT
	.comm	_IEEE80211_MODE_VHT_5GHZ,4,2    ## @IEEE80211_MODE_VHT_5GHZ
	.comm	_IEEE80211_MODE_VHT_2GHZ,4,2    ## @IEEE80211_MODE_VHT_2GHZ
	.comm	_IEEE80211_NODE_HT,4,2          ## @IEEE80211_NODE_HT
	.comm	_IEEE80211_MODE_11NA,4,2        ## @IEEE80211_MODE_11NA
	.comm	_IEEE80211_MODE_11NG,4,2        ## @IEEE80211_MODE_11NG
	.comm	_IEEE80211_MODE_STURBO_A,4,2    ## @IEEE80211_MODE_STURBO_A
	.comm	_IEEE80211_MODE_HALF,4,2        ## @IEEE80211_MODE_HALF
	.comm	_IEEE80211_MODE_QUARTER,4,2     ## @IEEE80211_MODE_QUARTER
	.comm	_IEEE80211_MODE_11A,4,2         ## @IEEE80211_MODE_11A
	.comm	_IEEE80211_NODE_ERP,4,2         ## @IEEE80211_NODE_ERP
	.comm	_IEEE80211_MODE_11G,4,2         ## @IEEE80211_MODE_11G
	.comm	_IEEE80211_MODE_11B,4,2         ## @IEEE80211_MODE_11B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_setuptxparms    ; -- Begin function ieee80211_node_setuptxparms
	.p2align	2
_ieee80211_node_setuptxparms:           ; @ieee80211_node_setuptxparms
	.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
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_NODE_VHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_NODE_VHT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_5GHZ
Lloh3:
	adrp	x8, _IEEE80211_MODE_VHT_5GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MODE_VHT_5GHZ@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IEEE80211_MODE_VHT_2GHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_MODE_VHT_2GHZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x9, _IEEE80211_NODE_HT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_NODE_HT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldr	w0, [x19, #16]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	bl	_IEEE80211_IS_CHAN_5GHZ
Lloh10:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh12:
	adrp	x9, _IEEE80211_MODE_11NG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_MODE_11NG@GOTPAGEOFF]
LBB0_4:
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_5:
	ldr	w8, [x8]
	ldr	x9, [x20]
	add	x8, x9, x8, lsl #2
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_IEEE80211_IS_CHAN_ST
	cbz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _IEEE80211_MODE_STURBO_A@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_MODE_STURBO_A@GOTPAGEOFF]
	b	LBB0_5
LBB0_8:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_HALF
	cbz	x0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _IEEE80211_MODE_HALF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_MODE_HALF@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_QUARTER
	cbz	x0, LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _IEEE80211_MODE_QUARTER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_MODE_QUARTER@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_A
	cbz	x0, LBB0_14
; %bb.13:
Lloh20:
	adrp	x8, _IEEE80211_MODE_11A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_MODE_11A@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_108G
Lloh22:
	adrp	x8, _IEEE80211_MODE_11G@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IEEE80211_MODE_11G@GOTPAGEOFF]
	cbnz	x0, LBB0_5
; %bb.15:
Lloh24:
	adrp	x9, _IEEE80211_NODE_ERP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_NODE_ERP@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x11, _IEEE80211_MODE_11B@GOTPAGE
Lloh28:
	ldr	x11, [x11, _IEEE80211_MODE_11B@GOTPAGEOFF]
	tst	w9, w10
	csel	x8, x11, x8, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NODE_VHT,4,2         ; @IEEE80211_NODE_VHT
	.comm	_IEEE80211_MODE_VHT_5GHZ,4,2    ; @IEEE80211_MODE_VHT_5GHZ
	.comm	_IEEE80211_MODE_VHT_2GHZ,4,2    ; @IEEE80211_MODE_VHT_2GHZ
	.comm	_IEEE80211_NODE_HT,4,2          ; @IEEE80211_NODE_HT
	.comm	_IEEE80211_MODE_11NA,4,2        ; @IEEE80211_MODE_11NA
	.comm	_IEEE80211_MODE_11NG,4,2        ; @IEEE80211_MODE_11NG
	.comm	_IEEE80211_MODE_STURBO_A,4,2    ; @IEEE80211_MODE_STURBO_A
	.comm	_IEEE80211_MODE_HALF,4,2        ; @IEEE80211_MODE_HALF
	.comm	_IEEE80211_MODE_QUARTER,4,2     ; @IEEE80211_MODE_QUARTER
	.comm	_IEEE80211_MODE_11A,4,2         ; @IEEE80211_MODE_11A
	.comm	_IEEE80211_NODE_ERP,4,2         ; @IEEE80211_NODE_ERP
	.comm	_IEEE80211_MODE_11G,4,2         ; @IEEE80211_MODE_11G
	.comm	_IEEE80211_MODE_11B,4,2         ; @IEEE80211_MODE_11B
.subsections_via_symbols
