	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_sta_calc_ht_flags
_iwl_sta_calc_ht_flags:                 ## @iwl_sta_calc_ht_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STA_FLG_RTS_MIMO_PROT_MSK@GOTPCREL(%rip), %r15
	movq	_STA_FLG_MIMO_DIS_MSK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%r15), %eax
	movq	_STA_FLG_HT40_EN_MSK@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movq	_STA_FLG_MAX_AGG_SIZE_MSK@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movq	_STA_FLG_AGG_MPDU_DENSITY_MSK@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movl	%eax, (%r8)
	movl	$0, (%rcx)
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 24(%rsi)
	je	LBB0_10
## %bb.2:
	movq	%rcx, %r14
	movq	%rdi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	cmpl	$130, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rcx, %rsi
	cmpl	$128, %eax
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rsi, %rcx
	leaq	L_.str(%rip), %rsi
	callq	_IWL_DEBUG_INFO
	movl	(%rbx), %edx
	cmpl	$130, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %edx
	je	LBB0_8
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.5:
	movl	(%r13), %eax
	orl	%eax, (%r14)
	jmp	LBB0_8
LBB0_6:
	movl	(%r15), %eax
	orl	%eax, (%r14)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_WARN
LBB0_8:
	movl	16(%rbx), %edi
	movq	_STA_FLG_MAX_AGG_SIZE_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	movl	8(%rbx), %edi
	movq	_STA_FLG_AGG_MPDU_DENSITY_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_iwl_is_ht40_tx_allowed
	testq	%rax, %rax
	movq	_STA_FLG_HT40_EN_MSK@GOTPCREL(%rip), %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STA_FLG_RTS_MIMO_PROT_MSK,4,2  ## @STA_FLG_RTS_MIMO_PROT_MSK
	.comm	_STA_FLG_MIMO_DIS_MSK,4,2       ## @STA_FLG_MIMO_DIS_MSK
	.comm	_STA_FLG_HT40_EN_MSK,4,2        ## @STA_FLG_HT40_EN_MSK
	.comm	_STA_FLG_MAX_AGG_SIZE_MSK,4,2   ## @STA_FLG_MAX_AGG_SIZE_MSK
	.comm	_STA_FLG_AGG_MPDU_DENSITY_MSK,4,2 ## @STA_FLG_AGG_MPDU_DENSITY_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %pM SM PS mode: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"static"

L_.str.2:                               ## @.str.2
	.asciz	"dynamic"

L_.str.3:                               ## @.str.3
	.asciz	"disabled"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid MIMO PS mode %d\n"

	.comm	_STA_FLG_MAX_AGG_SIZE_POS,4,2   ## @STA_FLG_MAX_AGG_SIZE_POS
	.comm	_STA_FLG_AGG_MPDU_DENSITY_POS,4,2 ## @STA_FLG_AGG_MPDU_DENSITY_POS
	.no_dead_strip	_iwl_sta_calc_ht_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_sta_calc_ht_flags
_iwl_sta_calc_ht_flags:                 ; @iwl_sta_calc_ht_flags
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x25, _STA_FLG_RTS_MIMO_PROT_MSK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STA_FLG_RTS_MIMO_PROT_MSK@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x24, _STA_FLG_MIMO_DIS_MSK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STA_FLG_MIMO_DIS_MSK@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh4:
	adrp	x23, _STA_FLG_HT40_EN_MSK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _STA_FLG_HT40_EN_MSK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _STA_FLG_MAX_AGG_SIZE_MSK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STA_FLG_MAX_AGG_SIZE_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _STA_FLG_AGG_MPDU_DENSITY_MSK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STA_FLG_AGG_MPDU_DENSITY_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x4]
	str	wzr, [x3]
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	ldp	w8, w2, [x20]
Lloh12:
	adrp	x9, l_.str.3@PAGE
Lloh13:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #130
	csel	x9, x10, x9, eq
Lloh16:
	adrp	x10, l_.str.1@PAGE
Lloh17:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #128
	csel	x3, x10, x9, eq
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_INFO
	ldr	w2, [x20]
	cmp	w2, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	w2, #128
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x24]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x25]
LBB0_7:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_IWL_WARN
LBB0_9:
	ldr	w8, [x20, #16]
Lloh22:
	adrp	x9, _STA_FLG_MAX_AGG_SIZE_POS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _STA_FLG_MAX_AGG_SIZE_POS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	w8, [x20, #8]
Lloh25:
	adrp	x9, _STA_FLG_AGG_MPDU_DENSITY_POS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _STA_FLG_AGG_MPDU_DENSITY_POS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_iwl_is_ht40_tx_allowed
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_STA_FLG_RTS_MIMO_PROT_MSK,4,2  ; @STA_FLG_RTS_MIMO_PROT_MSK
	.comm	_STA_FLG_MIMO_DIS_MSK,4,2       ; @STA_FLG_MIMO_DIS_MSK
	.comm	_STA_FLG_HT40_EN_MSK,4,2        ; @STA_FLG_HT40_EN_MSK
	.comm	_STA_FLG_MAX_AGG_SIZE_MSK,4,2   ; @STA_FLG_MAX_AGG_SIZE_MSK
	.comm	_STA_FLG_AGG_MPDU_DENSITY_MSK,4,2 ; @STA_FLG_AGG_MPDU_DENSITY_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %pM SM PS mode: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"static"

l_.str.2:                               ; @.str.2
	.asciz	"dynamic"

l_.str.3:                               ; @.str.3
	.asciz	"disabled"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid MIMO PS mode %d\n"

	.comm	_STA_FLG_MAX_AGG_SIZE_POS,4,2   ; @STA_FLG_MAX_AGG_SIZE_POS
	.comm	_STA_FLG_AGG_MPDU_DENSITY_POS,4,2 ; @STA_FLG_AGG_MPDU_DENSITY_POS
	.no_dead_strip	_iwl_sta_calc_ht_flags
.subsections_via_symbols
