	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findservice
_findservice:                           ## @findservice
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	movq	%r15, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sscanf
	movl	-28(%rbp), %ecx
	testl	%ecx, %ecx
	movl	$-1, %edx
	cmovlel	%edx, %ecx
	cmpl	$1, %eax
	cmovnel	%edx, %ecx
	jmp	LBB0_10
LBB0_3:
	cmpq	(%r14), %rbx
	je	LBB0_7
## %bb.4:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	%rcx, 8(%rax)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	%rax, 16(%rcx)
LBB0_6:
	movq	(%r14), %rax
	movq	%rbx, 16(%rax)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, (%r14)
LBB0_7:
	movl	(%rbx), %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.no_dead_strip	_findservice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findservice
_findservice:                           ; @findservice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x21, [x1]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x19, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #24]
	mov	x1, x20
	bl	_strcasecmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_2
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_sscanf
	ldr	w8, [sp, #12]
	cmp	w8, #1
	ccmp	w0, #1, #0, ge
	csinv	w0, w8, wzr, eq
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19]
	cmp	x21, x8
	b.eq	LBB0_9
; %bb.6:
	ldp	x9, x8, [x21, #8]
	str	x9, [x8, #8]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_8
; %bb.7:
	str	x8, [x9, #16]
LBB0_8:
	ldr	x8, [x19]
	str	x21, [x8, #16]
	ldr	x8, [x19]
	str	x8, [x21, #8]
	str	x21, [x19]
LBB0_9:
	ldr	w0, [x21]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.no_dead_strip	_findservice
.subsections_via_symbols
