	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set80211htprotmode
_set80211htprotmode:                    ## @set80211htprotmode
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_IEEE80211_PROTMODE_RTSCTS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_IEEE80211_PROTMODE_OFF@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	_IEEE80211_IOC_HTPROTMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_set80211                       ## TAILCALL
LBB0_5:
	callq	_set80211htprotmode.cold.1
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function set80211htprotmode.cold.1
_set80211htprotmode.cold.1:             ## @set80211htprotmode.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rsi
	pushq	$1
	popq	%rdi
	callq	_errx
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"off"

	.comm	_IEEE80211_PROTMODE_OFF,4,2     ## @IEEE80211_PROTMODE_OFF
L_.str.1:                               ## @.str.1
	.asciz	"rts"

	.comm	_IEEE80211_PROTMODE_RTSCTS,4,2  ## @IEEE80211_PROTMODE_RTSCTS
L_.str.2:                               ## @.str.2
	.asciz	"unknown protection mode"

	.comm	_IEEE80211_IOC_HTPROTMODE,4,2   ## @IEEE80211_IOC_HTPROTMODE
	.no_dead_strip	_set80211htprotmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set80211htprotmode
_set80211htprotmode:                    ; @set80211htprotmode
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_strncasecmp
	cbnz	x0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _IEEE80211_PROTMODE_RTSCTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IEEE80211_PROTMODE_RTSCTS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _IEEE80211_PROTMODE_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_PROTMODE_OFF@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _IEEE80211_IOC_HTPROTMODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_IOC_HTPROTMODE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set80211
LBB0_5:
	bl	_set80211htprotmode.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function set80211htprotmode.cold.1
_set80211htprotmode.cold.1:             ; @set80211htprotmode.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	brk	#0x1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"off"

	.comm	_IEEE80211_PROTMODE_OFF,4,2     ; @IEEE80211_PROTMODE_OFF
l_.str.1:                               ; @.str.1
	.asciz	"rts"

	.comm	_IEEE80211_PROTMODE_RTSCTS,4,2  ; @IEEE80211_PROTMODE_RTSCTS
l_.str.2:                               ; @.str.2
	.asciz	"unknown protection mode"

	.comm	_IEEE80211_IOC_HTPROTMODE,4,2   ; @IEEE80211_IOC_HTPROTMODE
	.no_dead_strip	_set80211htprotmode
.subsections_via_symbols
