	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_parameter_element_by_name
_get_parameter_element_by_name:         ## @get_parameter_element_by_name
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_atoi
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	$93, %esi
	callq	_strchr
	leaq	1(%rax), %rcx
	movq	%rcx, %rdx
	subq	%rbx, %rdx
	cmpq	$2, %rdx
	jl	LBB0_10
## %bb.4:
	cmpq	%r12, (%r15)
	jbe	LBB0_10
## %bb.5:
	shlq	$4, %r12
	addq	8(%r15), %r12
	movsbl	(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.6:
	cmpl	$46, %esi
	jne	LBB0_9
## %bb.7:
	addq	$2, %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_parameter_by_name          ## TAILCALL
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TRACE
LBB0_11:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parameter %p, name %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Returning parameter %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unhandled case \"%c\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"Parameter not found\n"

	.no_dead_strip	_get_parameter_element_by_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_parameter_element_by_name
_get_parameter_element_by_name:         ; @get_parameter_element_by_name
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x21, LBB0_10
; %bb.1:
	ldrb	w8, [x21]
	cbz	w8, LBB0_10
; %bb.2:
	mov	x0, x21
	bl	_atoi
	mov	x22, x0
	mov	x0, x21
	mov	w1, #93
	bl	_strchr
	add	x8, x0, #1
	sub	x9, x8, x21
	cmp	x9, #2
	b.lt	LBB0_9
; %bb.3:
	ldr	x9, [x20]
	cmp	x9, x22
	b.ls	LBB0_9
; %bb.4:
	ldr	x9, [x20, #8]
	add	x20, x9, x22, lsl #4
	ldrsb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.5:
	cmp	w8, #46
	b.ne	LBB0_8
; %bb.6:
	add	x2, x0, #2
	mov	x0, x19
	mov	x1, x20
	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
	b	_get_parameter_by_name
LBB0_7:
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	b	LBB0_11
LBB0_8:
	and	w8, w8, #0xff
	sxtb	w1, w8
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
LBB0_9:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parameter %p, name %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Returning parameter %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unhandled case \"%c\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"Parameter not found\n"

	.no_dead_strip	_get_parameter_element_by_name
.subsections_via_symbols
