	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_tx_ctrl
_siw_tx_ctrl:                           ## @siw_tx_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movl	%edx, -16(%rbp)
	movslq	(%rdi), %rcx
	leaq	(%rdi,%rcx), %rdx
	addq	$16, %rdx
	movq	%rdx, -32(%rbp)
	movq	8(%rdi), %r8
	subq	%rcx, %r8
	movq	%r8, -24(%rbp)
	leaq	-16(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_kernel_sendmsg
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movslq	(%rbx), %rcx
	movslq	%eax, %rdx
	addq	%rcx, %rdx
	movl	%edx, (%rbx)
	xorl	%eax, %eax
	cmpq	%rdx, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_siw_tx_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_tx_ctrl
_siw_tx_ctrl:                           ; @siw_tx_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x8, x1
	mov	x19, x0
	str	w2, [sp, #24]
	ldrsw	x9, [x0]
	add	x10, x0, x9
	add	x10, x10, #16
	ldr	x11, [x0, #8]
	sub	x4, x11, x9
	stp	x10, x4, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x8
	mov	w3, #1
	bl	_kernel_sendmsg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldrsw	x8, [x19]
	add	x8, x8, w0, sxtw
	str	w8, [x19]
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_siw_tx_ctrl
.subsections_via_symbols
