	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_attr_setschedparam        ## -- Begin function _thr_attr_setschedparam
	.p2align	4, 0x90
__thr_attr_setschedparam:               ## @_thr_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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.3:
	movl	(%rax), %edx
	movq	_SCHED_FIFO@GOTPCREL(%rip), %rdi
	movq	(%rsi), %rcx
	cmpl	(%rdi), %edx
	je	LBB0_8
## %bb.4:
	movq	_SCHED_RR@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_8
LBB0_5:
	movq	%rcx, 8(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movslq	%edx, %rdx
	movq	__thr_priorities@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	decq	%rdx
	shlq	$4, %rdx
	cmpq	(%rsi,%rdx), %rcx
	jl	LBB0_10
## %bb.9:
	cmpq	8(%rsi,%rdx), %rcx
	jle	LBB0_5
LBB0_10:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_SCHED_FIFO,4,2                 ## @SCHED_FIFO
	.comm	_SCHED_RR,4,2                   ## @SCHED_RR
	.comm	__thr_priorities,8,3            ## @_thr_priorities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_attr_setschedparam        ; -- Begin function _thr_attr_setschedparam
	.p2align	2
__thr_attr_setschedparam:               ; @_thr_attr_setschedparam
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	cbz	x1, LBB0_6
; %bb.3:
	ldr	w10, [x8]
Lloh0:
	adrp	x9, _SCHED_FIFO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCHED_FIFO@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
Lloh3:
	adrp	x9, _SCHED_RR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCHED_RR@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x9]
	ldr	x9, [x1]
	cmp	w10, w11
	ccmp	w10, w12, #4, ne
	b.ne	LBB0_8
; %bb.4:
Lloh6:
	adrp	x11, __thr_priorities@GOTPAGE
Lloh7:
	ldr	x11, [x11, __thr_priorities@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	sub	w10, w10, #1
	sbfiz	x12, x10, #4, #32
	ldr	x12, [x11, x12]
	cmp	x9, x12
	b.lt	LBB0_6
; %bb.5:
	sxtw	x10, w10
	add	x10, x11, x10, lsl #4
	ldr	x10, [x10, #8]
	cmp	x9, x10
	b.le	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_8:
	mov	w0, #0
	str	x9, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_SCHED_FIFO,4,2                 ; @SCHED_FIFO
	.comm	_SCHED_RR,4,2                   ; @SCHED_RR
	.comm	__thr_priorities,8,3            ; @_thr_priorities
.subsections_via_symbols
