	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procstat_get_sem_info          ## -- Begin function procstat_get_sem_info
	.p2align	4, 0x90
_procstat_get_sem_info:                 ## @procstat_get_sem_info
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_assert
	movq	(%rbx), %rsi
	movq	_PROCSTAT_KVM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.6:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_procstat_get_sem_info_kvm      ## TAILCALL
LBB0_1:
	movq	_PROCSTAT_SYSCTL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.2:
	movq	_PROCSTAT_CORE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	__POSIX2_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
LBB0_5:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_procstat_get_sem_info_sysctl   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCSTAT_KVM,8,3               ## @PROCSTAT_KVM
	.comm	_PROCSTAT_SYSCTL,8,3            ## @PROCSTAT_SYSCTL
	.comm	_PROCSTAT_CORE,8,3              ## @PROCSTAT_CORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown access method: %d"

	.comm	__POSIX2_LINE_MAX,4,2           ## @_POSIX2_LINE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procstat_get_sem_info          ; -- Begin function procstat_get_sem_info
	.p2align	2
_procstat_get_sem_info:                 ; @procstat_get_sem_info
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_assert
	ldr	x1, [x22]
Lloh0:
	adrp	x8, _PROCSTAT_KVM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCSTAT_KVM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x22, #8]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_procstat_get_sem_info_kvm
LBB0_2:
Lloh3:
	adrp	x8, _PROCSTAT_SYSCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROCSTAT_SYSCTL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PROCSTAT_CORE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PROCSTAT_CORE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_procstat_get_sem_info_sysctl
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	cbz	x19, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, __POSIX2_LINE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, __POSIX2_LINE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snprintf
LBB0_6:
	mov	w0, #1
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCSTAT_KVM,8,3               ; @PROCSTAT_KVM
	.comm	_PROCSTAT_SYSCTL,8,3            ; @PROCSTAT_SYSCTL
	.comm	_PROCSTAT_CORE,8,3              ; @PROCSTAT_CORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown access method: %d"

	.comm	__POSIX2_LINE_MAX,4,2           ; @_POSIX2_LINE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"error"

.subsections_via_symbols
