	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_mpt_set_angle              ## -- Begin function pwc_mpt_set_angle
	.p2align	4, 0x90
_pwc_mpt_set_angle:                     ## @pwc_mpt_set_angle
	.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
	cmpl	%esi, 16(%rdi)
	jg	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	cmpl	%esi, 20(%rdi)
	jl	LBB0_4
## %bb.2:
	cmpl	%edx, 24(%rbx)
	jg	LBB0_4
## %bb.3:
	cmpl	%edx, 28(%rbx)
	jge	LBB0_5
LBB0_4:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movdqu	(%rbx), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movd	%edx, %xmm1
	pinsrd	$1, %esi, %xmm1
	psubd	%xmm0, %xmm1
	pextrd	$1, %xmm1, %esi
	leal	-36001(%rsi), %eax
	cmpl	$-72001, %eax                   ## imm = 0xFFFEE6BF
	jb	LBB0_4
## %bb.6:
	movd	%xmm1, %edx
	cmpl	$-36000, %edx                   ## imm = 0xFFFF7360
	jl	LBB0_4
## %bb.7:
	cmpl	$36001, %edx                    ## imm = 0x8CA1
	jge	LBB0_4
## %bb.8:
	movdqa	%xmm1, -32(%rbp)                ## 16-byte Spill
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	__pwc_mpt_set_angle
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	pmovsxdq	-32(%rbp), %xmm0                ## 16-byte Folded Reload
	movdqu	(%rbx), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, (%rbx)
LBB0_10:
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	subl	(%rdx), %esi
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovel	%esi, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EPIPE,4,2                      ## @EPIPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_mpt_set_angle              ; -- Begin function pwc_mpt_set_angle
	.p2align	2
_pwc_mpt_set_angle:                     ; @pwc_mpt_set_angle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0, #16]
	cmp	w8, w1
	b.gt	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #20]
	cmp	w8, w1
	b.lt	LBB0_5
; %bb.2:
	ldr	w8, [x19, #24]
	cmp	w8, w2
	b.gt	LBB0_5
; %bb.3:
	ldr	w8, [x19, #28]
	cmp	w8, w2
	b.lt	LBB0_5
; %bb.4:
	ldr	q0, [x19]
	xtn.2s	v0, v0
	fmov	s1, w2
	mov.s	v1[1], w1
	sub.2s	v0, v1, v0
	mov.s	w1, v0[1]
	mov	w8, #-36001
	fmov	w2, s0
	mov	w9, #59071
	movk	w9, #65534, lsl #16
	add	w8, w1, w8
	cmp	w8, w9
	mov	w8, #-36000
	ccmp	w2, w8, #8, hs
	mov	w8, #36001
	ccmp	w2, w8, #0, ge
	b.lt	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	x0, x19
	bl	__pwc_mpt_set_angle
	tbnz	w0, #31, LBB0_9
; %bb.8:
	ldr	q0, [x19]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	saddw.2d	v0, v0, v1
	str	q0, [x19]
LBB0_9:
Lloh3:
	adrp	x8, _EPIPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ERANGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmn	w0, w8
	csneg	w0, w0, w9, ne
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_EPIPE,4,2                      ; @EPIPE
.subsections_via_symbols
