	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_set_control
_cs_set_control:                        ## @cs_set_control
	.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	%rcx, %r14
	movq	%rsi, %rbx
	movl	$0, (%rsi)
	movl	(%rcx), %eax
	movq	_IEEE80211_TX_CTL_FIRST_FRAGMENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_ZD_CS_NEED_RANDOM_BACKOFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_ZD_CS_NO_ACK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_5:
	movl	(%rdx), %edi
	callq	_ieee80211_is_pspoll
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ZD_CS_PS_POLL_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_7:
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_ZD_CS_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
LBB0_9:
	movq	_IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_ZD_CS_SELF_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_FIRST_FRAGMENT,4,2 ## @IEEE80211_TX_CTL_FIRST_FRAGMENT
	.comm	_ZD_CS_NEED_RANDOM_BACKOFF,4,2  ## @ZD_CS_NEED_RANDOM_BACKOFF
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_ZD_CS_NO_ACK,4,2               ## @ZD_CS_NO_ACK
	.comm	_ZD_CS_PS_POLL_FRAME,4,2        ## @ZD_CS_PS_POLL_FRAME
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ## @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_ZD_CS_RTS,4,2                  ## @ZD_CS_RTS
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ## @IEEE80211_TX_RC_USE_CTS_PROTECT
	.comm	_ZD_CS_SELF_CTS,4,2             ## @ZD_CS_SELF_CTS
	.no_dead_strip	_cs_set_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_set_control
_cs_set_control:                        ; @cs_set_control
	.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	x20, x3
	mov	x19, x1
	str	wzr, [x1]
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_FIRST_FRAGMENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_FIRST_FRAGMENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _ZD_CS_NEED_RANDOM_BACKOFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZD_CS_NEED_RANDOM_BACKOFF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19]
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
Lloh6:
	adrp	x10, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _ZD_CS_NO_ACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZD_CS_NO_ACK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	w0, [x2]
	bl	_ieee80211_is_pspoll
	cbz	x0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _ZD_CS_PS_POLL_FRAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZD_CS_PS_POLL_FRAME@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh18:
	adrp	x9, _ZD_CS_RTS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ZD_CS_RTS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_9:
Lloh21:
	adrp	x9, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _ZD_CS_SELF_CTS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ZD_CS_SELF_CTS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_FIRST_FRAGMENT,4,2 ; @IEEE80211_TX_CTL_FIRST_FRAGMENT
	.comm	_ZD_CS_NEED_RANDOM_BACKOFF,4,2  ; @ZD_CS_NEED_RANDOM_BACKOFF
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_ZD_CS_NO_ACK,4,2               ; @ZD_CS_NO_ACK
	.comm	_ZD_CS_PS_POLL_FRAME,4,2        ; @ZD_CS_PS_POLL_FRAME
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ; @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_ZD_CS_RTS,4,2                  ; @ZD_CS_RTS
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ; @IEEE80211_TX_RC_USE_CTS_PROTECT
	.comm	_ZD_CS_SELF_CTS,4,2             ; @ZD_CS_SELF_CTS
	.no_dead_strip	_cs_set_control
.subsections_via_symbols
