	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function i40iw_next_iw_state
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_i40iw_next_iw_state
	.p2align	4, 0x90
_i40iw_next_iw_state:                   ## @i40iw_next_iw_state
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r14d, -72(%rbp)
	movl	%r13d, -68(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, -64(%rbp)
	movl	%r12d, -48(%rbp)
	movq	_I40IWQP_TERM_SEND_TERM_ONLY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, -56(%rbp)
LBB0_2:
	movq	_I40IWQP_TERM_SEND_FIN_ONLY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$0, -52(%rbp)
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_I40IW_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	$1, -44(%rbp)
LBB0_7:
	movl	%r14d, (%rbx)
	movl	4(%rbx), %edi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_i40iw_hw_modify_qp
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IWQP_TERM_SEND_TERM_ONLY,4,2 ## @I40IWQP_TERM_SEND_TERM_ONLY
	.comm	_I40IWQP_TERM_SEND_FIN_ONLY,4,2 ## @I40IWQP_TERM_SEND_FIN_ONLY
	.comm	_I40IW_QP_STATE_ERROR,4,2       ## @I40IW_QP_STATE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_next_iw_state            ; -- Begin function i40iw_next_iw_state
	.p2align	2
_i40iw_next_iw_state:                   ; @i40iw_next_iw_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	w20, w23, [sp]
	movi.4s	v0, #1
	stur	q0, [sp, #8]
	str	w22, [sp, #24]
Lloh0:
	adrp	x8, _I40IWQP_TERM_SEND_TERM_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IWQP_TERM_SEND_TERM_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	str	wzr, [sp, #16]
LBB0_2:
Lloh3:
	adrp	x8, _I40IWQP_TERM_SEND_FIN_ONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IWQP_TERM_SEND_FIN_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	str	wzr, [sp, #20]
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _I40IW_QP_STATE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_QP_STATE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [sp, #28]
LBB0_7:
	str	w20, [x19]
	ldr	w0, [x19, #4]
	mov	x2, sp
	mov	x1, x19
	mov	w3, #0
	bl	_i40iw_hw_modify_qp
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IWQP_TERM_SEND_TERM_ONLY,4,2 ; @I40IWQP_TERM_SEND_TERM_ONLY
	.comm	_I40IWQP_TERM_SEND_FIN_ONLY,4,2 ; @I40IWQP_TERM_SEND_FIN_ONLY
	.comm	_I40IW_QP_STATE_ERROR,4,2       ; @I40IW_QP_STATE_ERROR
.subsections_via_symbols
