	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_iplconvkernel
_parse_iplconvkernel:                   ## @parse_iplconvkernel
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	l___const.parse_iplconvkernel.shape_str+16(%rip), %xmm0
	movaps	%xmm0, -192(%rbp)
	movaps	l___const.parse_iplconvkernel.shape_str(%rip), %xmm0
	movaps	%xmm0, -208(%rbp)
	movl	$0, -216(%rbp)
	movl	$0, -212(%rbp)
	movl	$0, -224(%rbp)
	movl	$0, -220(%rbp)
	movq	$0, -240(%rbp)
	leaq	-176(%rbp), %rbx
	leaq	-208(%rbp), %r14
	leaq	L_.str(%rip), %rsi
	leaq	-216(%rbp), %rdx
	leaq	-212(%rbp), %rcx
	leaq	-224(%rbp), %r8
	leaq	-220(%rbp), %r9
	movq	%rax, %rdi
	pushq	%rbx
	pushq	%r14
	callq	_sscanf
	addq	$16, %rsp
	movl	$1952671090, %eax               ## imm = 0x74636572
	xorl	-208(%rbp), %eax
	movzbl	-204(%rbp), %ecx
	orl	%eax, %ecx
	je	LBB0_1
## %bb.3:
	movl	$1936683619, %eax               ## imm = 0x736F7263
	xorl	-208(%rbp), %eax
	movzwl	-204(%rbp), %ecx
	xorl	$115, %ecx
	orl	%eax, %ecx
	je	LBB0_4
## %bb.5:
	movabsq	$28555899290020965, %rax        ## imm = 0x657370696C6C65
	cmpq	%rax, -208(%rbp)
	jne	LBB0_7
## %bb.6:
	movq	%r13, %r15
	movq	%r12, -232(%rbp)                ## 8-byte Spill
	movq	_CV_SHAPE_ELLIPSE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	%r13, %r15
	movq	%r12, -232(%rbp)                ## 8-byte Spill
	movq	_CV_SHAPE_RECT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %r15
	movq	%r12, -232(%rbp)                ## 8-byte Spill
	movq	_CV_SHAPE_CROSS@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r12d
	xorl	%r13d, %r13d
LBB0_9:
	movl	-212(%rbp), %ebx
	movl	-216(%rbp), %eax
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.10:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.15:
	movl	-224(%rbp), %ecx
	movl	-220(%rbp), %r8d
	testl	%ecx, %ecx
	js	LBB0_19
## %bb.16:
	testl	%r8d, %r8d
	js	LBB0_19
## %bb.17:
	cmpl	%eax, %ecx
	jge	LBB0_19
## %bb.18:
	cmpl	%ebx, %r8d
	jge	LBB0_19
## %bb.20:
	movq	-240(%rbp), %r9
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%r12d, %r8d
	callq	_cvCreateStructuringElementEx
	movq	-232(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-212(%rbp), %ecx
	movl	-216(%rbp), %r8d
	movl	-224(%rbp), %r9d
	movl	-220(%rbp), %ebx
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	%r14
	pushq	%rbx
	callq	_av_log
	addq	$16, %rsp
	jmp	LBB0_23
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	subq	$8, %rsp
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_av_log
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_7:
	movl	$1953723747, %eax               ## imm = 0x74737563
	xorl	-208(%rbp), %eax
	movl	$7171956, %ecx                  ## imm = 0x6D6F74
	xorl	-205(%rbp), %ecx
	orl	%eax, %ecx
	je	LBB0_8
## %bb.12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	leaq	-208(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_23:
	leaq	-240(%rbp), %rdi
	callq	_av_freep
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r13d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	%r12, -232(%rbp)                ## 8-byte Spill
	movq	_CV_SHAPE_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-216(%rbp), %rdi
	leaq	-212(%rbp), %rsi
	leaq	-240(%rbp), %rdx
	leaq	-176(%rbp), %rcx
	movq	%r13, %r15
	movq	%r13, %r8
	callq	_read_shape_from_file
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_24
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.parse_iplconvkernel.shape_str
l___const.parse_iplconvkernel.shape_str:
	.asciz	"rect\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

	.comm	_CV_SHAPE_RECT,4,2              ## @CV_SHAPE_RECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dx%d+%dx%d/%32[^=]=%127s"

L_.str.1:                               ## @.str.1
	.asciz	"rect"

L_.str.2:                               ## @.str.2
	.asciz	"cross"

	.comm	_CV_SHAPE_CROSS,4,2             ## @CV_SHAPE_CROSS
	.comm	_CV_SHAPE_ELLIPSE,4,2           ## @CV_SHAPE_ELLIPSE
L_.str.4:                               ## @.str.4
	.asciz	"custom"

	.comm	_CV_SHAPE_CUSTOM,4,2            ## @CV_SHAPE_CUSTOM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"Shape unspecified or type '%s' unknown.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.6:                               ## @.str.6
	.asciz	"Invalid non-positive values for shape size %dx%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Shape anchor %dx%d is not inside the rectangle with size %dx%d.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.8:                               ## @.str.8
	.asciz	"Structuring element: w:%d h:%d x:%d y:%d shape:%s\n"

	.no_dead_strip	_parse_iplconvkernel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_iplconvkernel
_parse_iplconvkernel:                   ; @parse_iplconvkernel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
	add	x9, sp, #96
	movi.2d	v2, #0000000000000000
	stp	q2, q2, [x9, #96]
	str	q2, [x9, #80]
	stp	q2, q2, [sp, #144]
	stp	q2, q2, [sp, #112]
Lloh3:
	adrp	x9, l___const.parse_iplconvkernel.shape_str@PAGE
Lloh4:
	add	x9, x9, l___const.parse_iplconvkernel.shape_str@PAGEOFF
	ldp	q0, q1, [x9]
	str	q0, [sp, #64]
	stp	q1, q2, [sp, #80]
	stp	xzr, xzr, [sp, #48]
	str	xzr, [sp, #40]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #60
	add	x3, sp, #56
	add	x4, sp, #52
	add	x5, sp, #48
	add	x6, sp, #64
	add	x7, sp, #96
	mov	x0, x8
	bl	_sscanf
	ldr	w8, [sp, #64]
	mov	w9, #25970
	movk	w9, #29795, lsl #16
	eor	w8, w8, w9
	ldrb	w9, [sp, #68]
	orr	w8, w8, w9
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w8, [sp, #64]
	mov	w9, #29283
	movk	w9, #29551, lsl #16
	eor	w8, w8, w9
	ldrh	w9, [sp, #68]
	mov	w10, #115
	eor	w9, w9, w10
	orr	w8, w8, w9
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [sp, #64]
	mov	x9, #27749
	movk	x9, #26988, lsl #16
	movk	x9, #29552, lsl #32
	movk	x9, #101, lsl #48
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	ldr	w8, [sp, #64]
	mov	w9, #30051
	movk	w9, #29811, lsl #16
	eor	w8, w8, w9
	ldur	w9, [sp, #67]
	mov	w10, #28532
	movk	w10, #109, lsl #16
	eor	w9, w9, w10
	orr	w8, w8, w9
	cbz	w8, LBB0_8
; %bb.4:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x8, sp, #64
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.5@PAGE
Lloh11:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	b	LBB0_20
LBB0_5:
	mov	w21, #0
Lloh12:
	adrp	x8, _CV_SHAPE_RECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CV_SHAPE_RECT@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_6:
	mov	w21, #0
Lloh15:
	adrp	x8, _CV_SHAPE_CROSS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CV_SHAPE_CROSS@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_7:
	mov	w21, #0
Lloh18:
	adrp	x8, _CV_SHAPE_ELLIPSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CV_SHAPE_ELLIPSE@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _CV_SHAPE_CUSTOM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CV_SHAPE_CUSTOM@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	add	x0, sp, #60
	add	x1, sp, #56
	add	x2, sp, #40
	add	x3, sp, #96
	mov	x4, x19
	bl	_read_shape_from_file
	mov	x21, x0
	tbnz	w0, #31, LBB0_23
LBB0_9:
	ldp	w1, w0, [sp, #56]
	cmp	w1, #1
	b.lt	LBB0_17
; %bb.10:
	cmp	w0, #0
	b.le	LBB0_17
; %bb.11:
	ldp	w3, w2, [sp, #48]
	tbnz	w2, #31, LBB0_18
; %bb.12:
	tbnz	w3, #31, LBB0_18
; %bb.13:
	cmp	w2, w0
	b.ge	LBB0_18
; %bb.14:
	cmp	w3, w1
	b.ge	LBB0_18
; %bb.15:
	ldr	x5, [sp, #40]
                                        ; kill: def $w0 killed $w0 killed $x0
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
	bl	_cvCreateStructuringElementEx
	str	x0, [x20]
	cbz	x0, LBB0_25
; %bb.16:
Lloh24:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldp	w8, w9, [sp, #56]
	ldp	w11, w10, [sp, #48]
	add	x12, sp, #64
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh27:
	adrp	x2, l_.str.8@PAGE
Lloh28:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_22
LBB0_17:
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1 def $x1
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x1, [sp]
Lloh32:
	adrp	x2, l_.str.6@PAGE
Lloh33:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	x0, x1, [sp, #16]
	stp	x2, x3, [sp]
Lloh37:
	adrp	x2, l_.str.7@PAGE
Lloh38:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_19:
	mov	x0, x19
	mov	x1, x8
LBB0_20:
	bl	_av_log
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_22:
	add	x0, sp, #40
	bl	_av_freep
LBB0_23:
	ldur	x8, [x29, #-56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	mov	x0, x21
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_25:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.parse_iplconvkernel.shape_str: ; @__const.parse_iplconvkernel.shape_str
	.asciz	"rect\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

	.comm	_CV_SHAPE_RECT,4,2              ; @CV_SHAPE_RECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dx%d+%dx%d/%32[^=]=%127s"

l_.str.1:                               ; @.str.1
	.asciz	"rect"

l_.str.2:                               ; @.str.2
	.asciz	"cross"

	.comm	_CV_SHAPE_CROSS,4,2             ; @CV_SHAPE_CROSS
l_.str.3:                               ; @.str.3
	.asciz	"ellipse"

	.comm	_CV_SHAPE_ELLIPSE,4,2           ; @CV_SHAPE_ELLIPSE
l_.str.4:                               ; @.str.4
	.asciz	"custom"

	.comm	_CV_SHAPE_CUSTOM,4,2            ; @CV_SHAPE_CUSTOM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"Shape unspecified or type '%s' unknown.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.6:                               ; @.str.6
	.asciz	"Invalid non-positive values for shape size %dx%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Shape anchor %dx%d is not inside the rectangle with size %dx%d.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.8:                               ; @.str.8
	.asciz	"Structuring element: w:%d h:%d x:%d y:%d shape:%s\n"

	.no_dead_strip	_parse_iplconvkernel
.subsections_via_symbols
