	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sched__get_first_possible_cpu
_sched__get_first_possible_cpu:         ## @sched__get_first_possible_cpu
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_CPU_ZERO
	movl	%r14d, %edi
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_sched_getaffinity
	movl	$1024, %r12d                    ## imm = 0x400
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.1:
	movl	$1024, %r12d                    ## imm = 0x400
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$262143, %r12d                  ## imm = 0x3FFFF
	jg	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	shll	$2, %r12d
	movq	%r15, %rdi
	callq	_CPU_ZERO
	movl	%r14d, %edi
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_sched_getaffinity
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.5:
	testl	%r12d, %r12d
	jle	LBB0_12
LBB0_6:
	xorl	%ebx, %ebx
	movl	$-1, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	%r14d, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	movl	%eax, %r14d
	cmpl	%ebx, %r12d
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %eax
	cmpl	$-1, %r14d
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_CPU_CLR
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_perror
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sched_getaffinity"

	.no_dead_strip	_sched__get_first_possible_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sched__get_first_possible_cpu
_sched__get_first_possible_cpu:         ; @sched__get_first_possible_cpu
	.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
	mov	x0, x1
	bl	_CPU_ZERO
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_sched_getaffinity
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #1024
	b	LBB0_14
LBB0_2:
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _EINVAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.3:
	mov	x0, x19
	bl	_CPU_ZERO
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_sched_getaffinity
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	mov	w21, #4096
	b	LBB0_14
LBB0_5:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.6:
	mov	x0, x19
	bl	_CPU_ZERO
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_sched_getaffinity
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.7:
	mov	w21, #16384
	b	LBB0_14
LBB0_8:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.9:
	mov	x0, x19
	bl	_CPU_ZERO
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_sched_getaffinity
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.10:
	mov	w21, #65536
	b	LBB0_14
LBB0_11:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.12:
	mov	x0, x19
	bl	_CPU_ZERO
	mov	x0, x20
	mov	w1, #4
	mov	x2, x19
	bl	_sched_getaffinity
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.13:
	mov	w21, #262144
LBB0_14:
	mov	w20, #0
	mov	w22, #-1
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_CPU_CLR
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w20, w20, #1
	mov	x22, x0
	cmp	w21, w20
	b.eq	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_CPU_ISSET
	cbz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	cmn	w22, #1
	b.ne	LBB0_15
	b	LBB0_17
LBB0_20:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #-1
LBB0_21:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sched_getaffinity"

	.no_dead_strip	_sched__get_first_possible_cpu
.subsections_via_symbols
