	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_wqe_psn
_update_wqe_psn:                        ## @update_wqe_psn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %r8
	addl	8(%rsi), %ecx
	movl	(%rdi), %r9d
	leal	(%r9,%rcx), %eax
	decl	%eax
	cltd
	idivl	%r9d
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	(%r8), %r8d
	movq	_RXE_START_MASK@GOTPCREL(%rip), %rdx
	testl	%r8d, (%rdx)
	je	LBB0_2
## %bb.1:
	movl	4(%rdi), %edx
	movl	%edx, (%rsi)
	addl	%ecx, %edx
	decl	%edx
	movq	_BTH_PSN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	%edx, 4(%rsi)
LBB0_2:
	movq	_RXE_READ_MASK@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_4
## %bb.3:
	addl	(%rsi), %ecx
	movq	_BTH_PSN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movl	%ecx, 4(%rdi)
	popq	%rbp
	retq
LBB0_4:
	movl	4(%rdi), %eax
	incl	%eax
	movq	_BTH_PSN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXE_START_MASK,4,2             ## @RXE_START_MASK
	.comm	_BTH_PSN_MASK,4,2               ## @BTH_PSN_MASK
	.comm	_RXE_READ_MASK,4,2              ## @RXE_READ_MASK
	.no_dead_strip	_update_wqe_psn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_wqe_psn
_update_wqe_psn:                        ; @update_wqe_psn
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1, #8]
	ldr	w9, [x0]
	add	w8, w3, w8
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	ldr	w10, [x2]
Lloh0:
	adrp	x9, _RXE_START_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXE_START_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
Lloh3:
	adrp	x9, _BTH_PSN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTH_PSN_MASK@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
	ldr	w11, [x0, #4]
	str	w11, [x1]
	add	w11, w8, w11
	sub	w11, w11, #1
	ldr	w12, [x9]
	and	w11, w12, w11
	str	w11, [x1, #4]
LBB0_2:
Lloh5:
	adrp	x11, _RXE_READ_MASK@GOTPAGE
Lloh6:
	ldr	x11, [x11, _RXE_READ_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
	ldr	w10, [x1]
	ldr	w9, [x9]
	add	w8, w10, w8
	b	LBB0_5
LBB0_4:
	ldr	w8, [x0, #4]
	add	w8, w8, #1
	ldr	w9, [x9]
LBB0_5:
	and	w8, w8, w9
	str	w8, [x0, #4]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RXE_START_MASK,4,2             ; @RXE_START_MASK
	.comm	_BTH_PSN_MASK,4,2               ; @BTH_PSN_MASK
	.comm	_RXE_READ_MASK,4,2              ; @RXE_READ_MASK
	.no_dead_strip	_update_wqe_psn
.subsections_via_symbols
