	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_attr_setschedpolicy       ## -- Begin function _thr_attr_setschedpolicy
	.p2align	4, 0x90
__thr_attr_setschedpolicy:              ## @_thr_attr_setschedpolicy
	.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_5
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_SCHED_FIFO@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jg	LBB0_7
## %bb.3:
	movq	_SCHED_RR@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_7
## %bb.4:
	movl	%esi, (%rax)
	movq	__thr_priorities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %rdx
	movl	-4(%rcx,%rdx,4), %ecx
	movl	%ecx, 4(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCHED_FIFO,4,2                 ## @SCHED_FIFO
	.comm	_SCHED_RR,4,2                   ## @SCHED_RR
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.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_setschedpolicy       ; -- Begin function _thr_attr_setschedpolicy
	.p2align	2
__thr_attr_setschedpolicy:              ; @_thr_attr_setschedpolicy
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _SCHED_FIFO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCHED_FIFO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SCHED_RR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCHED_RR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w1
	ccmp	w10, w1, #8, le
	b.ge	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_5:
	mov	w0, #0
Lloh12:
	adrp	x9, __thr_priorities@GOTPAGE
Lloh13:
	ldr	x9, [x9, __thr_priorities@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x9, x9, w1, sxtw #2
	ldur	w9, [x9, #-4]
	stp	w1, w9, [x8]
	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	_SCHED_FIFO,4,2                 ; @SCHED_FIFO
	.comm	_SCHED_RR,4,2                   ; @SCHED_RR
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	__thr_priorities,8,3            ; @_thr_priorities
.subsections_via_symbols
