	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_qp_modify                  ## -- Begin function siw_qp_modify
	.p2align	4, 0x90
_siw_qp_modify:                         ## @siw_qp_modify
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_11
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_siw_qp_state_to_string@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	(%rsi), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_siw_dbg_qp
	movq	_SIW_QP_ATTR_STATE@GOTPCREL(%rip), %r12
	movl	%ebx, %eax
	cmpl	%ebx, (%r12)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_siw_qp_modify_nonstate
	movl	(%r12), %eax
LBB0_3:
	testl	%ebx, %eax
	je	LBB0_11
## %bb.4:
	movq	(%r15), %rax
	addq	$-128, %rax
	cmpq	$4, %rax
	ja	LBB0_11
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_siw_qp_nextstate_from_idle     ## TAILCALL
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_siw_qp_nextstate_from_term
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_siw_qp_nextstate_from_rts
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_siw_qp_cm_drop
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_siw_qp_nextstate_from_close
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state: %s => %s\n"

	.comm	_siw_qp_state_to_string,8,3     ## @siw_qp_state_to_string
	.comm	_SIW_QP_ATTR_STATE,4,2          ## @SIW_QP_ATTR_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_qp_modify                  ; -- Begin function siw_qp_modify
	.p2align	2
_siw_qp_modify:                         ; @siw_qp_modify
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w2, LBB0_11
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _siw_qp_state_to_string@GOTPAGE
Lloh1:
	ldr	x8, [x8, _siw_qp_state_to_string@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w2, [x8, x9, lsl #2]
	ldr	x9, [x1]
	ldr	w3, [x8, x9, lsl #2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_siw_dbg_qp
Lloh5:
	adrp	x22, _SIW_QP_ATTR_STATE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SIW_QP_ATTR_STATE@GOTPAGEOFF]
	ldr	w9, [x22]
	mov	x8, x21
	cmp	w9, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_siw_qp_modify_nonstate
	ldr	w8, [x22]
LBB0_3:
	tst	w8, w21
	b.eq	LBB0_11
; %bb.4:
	ldr	x8, [x19]
	sub	x8, x8, #128
	cmp	x8, #4
	b.hi	LBB0_11
; %bb.5:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_siw_qp_nextstate_from_idle
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_siw_qp_nextstate_from_term
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_siw_qp_nextstate_from_rts
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	bl	_siw_qp_cm_drop
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_siw_qp_nextstate_from_close
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state: %s => %s\n"

	.comm	_siw_qp_state_to_string,8,3     ; @siw_qp_state_to_string
	.comm	_SIW_QP_ATTR_STATE,4,2          ; @SIW_QP_ATTR_STATE
.subsections_via_symbols
