	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pthread_getschedparam         ## -- Begin function _pthread_getschedparam
	.p2align	4, 0x90
__pthread_getschedparam:                ## @_pthread_getschedparam
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	__get_curthread
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	cmpq	%rbx, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	__thr_find_thread
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_THR_LOCK
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_THR_THREAD_UNLOCK
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pthread_getschedparam         ; -- Begin function _pthread_getschedparam
	.p2align	2
__pthread_getschedparam:                ; @_pthread_getschedparam
	.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	x21, x1
	mov	x19, x0
	bl	__get_curthread
	cbz	x21, LBB0_4
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	mov	x22, x0
	cmp	x0, x19
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	bl	__thr_find_thread
	cbnz	w0, LBB0_7
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_THR_LOCK
LBB0_6:
	ldp	w8, w9, [x19]
	str	w8, [x21]
	str	w9, [x20]
	mov	x0, x22
	mov	x1, x19
	bl	_THR_THREAD_UNLOCK
	mov	w0, #0
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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
