	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_ctxt_set_ht_flags
_iwl_mvm_mac_ctxt_set_ht_flags:         ## @iwl_mvm_mac_ctxt_set_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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_IEEE80211_HT_OP_MODE_PROTECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rsi), %ebx
	movq	_MAC_PROT_FLG_HT_PROT@GOTPCREL(%rip), %rax
	movq	_MAC_PROT_FLG_FAT_PROT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_IWL_DEBUG_RATE
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$131, %ebx
	jne	LBB0_6
## %bb.3:
	movl	4(%r12), %eax
	movq	_NL80211_CHAN_WIDTH_20@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
LBB0_4:
	movl	%r13d, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_OP_MODE_PROTECTION,4,2 ## @IEEE80211_HT_OP_MODE_PROTECTION
	.comm	_MAC_PROT_FLG_HT_PROT,4,2       ## @MAC_PROT_FLG_HT_PROT
	.comm	_MAC_PROT_FLG_FAT_PROT,4,2      ## @MAC_PROT_FLG_FAT_PROT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"protection mode set to %d\n"

	.comm	_NL80211_CHAN_WIDTH_20,4,2      ## @NL80211_CHAN_WIDTH_20
L_.str.1:                               ## @.str.1
	.asciz	"Illegal protection mode %d\n"

	.no_dead_strip	_iwl_mvm_mac_ctxt_set_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_mvm_mac_ctxt_set_ht_flags
_iwl_mvm_mac_ctxt_set_ht_flags:         ; @iwl_mvm_mac_ctxt_set_ht_flags
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IEEE80211_HT_OP_MODE_PROTECTION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HT_OP_MODE_PROTECTION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MAC_PROT_FLG_HT_PROT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAC_PROT_FLG_HT_PROT@GOTPAGEOFF]
	and	w23, w9, w8
Lloh5:
	ldr	w8, [x10]
Lloh6:
	adrp	x9, _MAC_PROT_FLG_FAT_PROT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_PROT_FLG_FAT_PROT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_IWL_DEBUG_RATE
	sub	w8, w23, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w23, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w23, #131
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x22, #4]
Lloh11:
	adrp	x9, _NL80211_CHAN_WIDTH_20@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IWL_ERR
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_OP_MODE_PROTECTION,4,2 ; @IEEE80211_HT_OP_MODE_PROTECTION
	.comm	_MAC_PROT_FLG_HT_PROT,4,2       ; @MAC_PROT_FLG_HT_PROT
	.comm	_MAC_PROT_FLG_FAT_PROT,4,2      ; @MAC_PROT_FLG_FAT_PROT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"protection mode set to %d\n"

	.comm	_NL80211_CHAN_WIDTH_20,4,2      ; @NL80211_CHAN_WIDTH_20
l_.str.1:                               ; @.str.1
	.asciz	"Illegal protection mode %d\n"

	.no_dead_strip	_iwl_mvm_mac_ctxt_set_ht_flags
.subsections_via_symbols
