	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_setschedparam          ## -- Begin function pthread_setschedparam
	.p2align	4, 0x90
_pthread_setschedparam:                 ## @pthread_setschedparam
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%esi, %esi
	callq	_pthread_kill
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_SCHED_MIN@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jg	LBB0_3
## %bb.2:
	movq	_SCHED_MAX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_3
## %bb.4:
	movq	_SCHED_OTHER@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.8:
	movl	(%r14), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pte_setthreadpriority          ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCHED_MIN,4,2                  ## @SCHED_MIN
	.comm	_SCHED_MAX,4,2                  ## @SCHED_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCHED_OTHER,4,2                ## @SCHED_OTHER
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_setschedparam          ; -- Begin function pthread_setschedparam
	.p2align	2
_pthread_setschedparam:                 ; @pthread_setschedparam
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w1, #0
	bl	_pthread_kill
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _SCHED_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCHED_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCHED_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCHED_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #8, le
	b.ge	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _SCHED_OTHER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCHED_OTHER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	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	_pte_setthreadpriority
LBB0_5:
Lloh11:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SCHED_MIN,4,2                  ; @SCHED_MIN
	.comm	_SCHED_MAX,4,2                  ; @SCHED_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCHED_OTHER,4,2                ; @SCHED_OTHER
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
.subsections_via_symbols
