	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_attr_setschedparam     ## -- Begin function pthread_attr_setschedparam
	.p2align	4, 0x90
_pthread_attr_setschedparam:            ## @pthread_attr_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_pte_is_attr
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movl	(%rbx), %r15d
	movq	_SCHED_OTHER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_sched_get_priority_min
	cmpl	%eax, %r15d
	jl	LBB0_2
## %bb.4:
	movl	(%r12), %edi
	callq	_sched_get_priority_max
	cmpl	%eax, %r15d
	jle	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCHED_OTHER,4,2                ## @SCHED_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_attr_setschedparam     ; -- Begin function pthread_attr_setschedparam
	.p2align	2
_pthread_attr_setschedparam:            ; @pthread_attr_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	x19, x1
	mov	x20, x0
	bl	_pte_is_attr
	cbz	x19, LBB0_4
; %bb.1:
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w21, [x19]
Lloh0:
	adrp	x22, _SCHED_OTHER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCHED_OTHER@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_sched_get_priority_min
	cmp	w21, w0
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x22]
	bl	_sched_get_priority_max
	cmp	w21, w0
	b.le	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_5:
	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
LBB0_6:
	ldr	x0, [x20]
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCHED_OTHER,4,2                ; @SCHED_OTHER
.subsections_via_symbols
