	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_abi
_find_abi:                              ## @find_abi
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$32, -104(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_KERN_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_KERN_PROC_SV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%edi, -52(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-96(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	movl	$4, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_err
LBB0_2:
	movq	_abis@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	8(%rax,%r13), %edi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_nitems
	movl	%eax, %eax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_7:
	movslq	%r14d, %rdx
	leaq	L_.str.1(%rip), %rdi
	leaq	-96(%rbp), %rsi
	callq	_warnx
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	(%r12), %rax
	movq	(%rax,%r13), %rax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROC,4,2                  ## @KERN_PROC
	.comm	_KERN_PROC_SV_NAME,4,2          ## @KERN_PROC_SV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not get sysvec name"

	.comm	_abis,8,3                       ## @abis
L_.str.1:                               ## @.str.1
	.asciz	"ABI %s for pid %ld is not supported"

	.no_dead_strip	_find_abi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_abi
_find_abi:                              ; @find_abi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #32
Lloh3:
	adrp	x9, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTL_KERN@GOTPAGEOFF]
	str	x8, [sp]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _KERN_PROC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KERN_PROC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh9:
	adrp	x8, _KERN_PROC_SV_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_PROC_SV_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #48]
	add	x0, sp, #40
	add	x2, sp, #8
	mov	x3, sp
	mov	w1, #4
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_2:
Lloh14:
	adrp	x20, _abis@GOTPAGE
Lloh15:
	ldr	x20, [x20, _abis@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	add	x1, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_nitems
	add	x21, x21, #16
	cmp	x22, w0, uxtw
	b.lo	LBB0_4
LBB0_6:
	sxtw	x2, w19
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_warnx
	mov	x0, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	ldr	x0, [x8, x21]
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROC,4,2                  ; @KERN_PROC
	.comm	_KERN_PROC_SV_NAME,4,2          ; @KERN_PROC_SV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not get sysvec name"

	.comm	_abis,8,3                       ; @abis
l_.str.1:                               ; @.str.1
	.asciz	"ABI %s for pid %ld is not supported"

	.no_dead_strip	_find_abi
.subsections_via_symbols
