	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_fpga_region_parse_ov
_of_fpga_region_parse_ov:               ## @of_fpga_region_parse_ov
	.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
	leaq	8(%rdi), %r15
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_child_regions_with_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	callq	_fpga_image_info_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r14
	movq	%rbx, 24(%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_FPGA_MGR_PARTIAL_RECONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_FPGA_MGR_EXTERNAL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_FPGA_MGR_ENCRYPTED_BITSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	-32(%rbp), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_devm_kstrdup
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:
	leaq	16(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	leaq	12(%r14), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	movq	%r14, %rdx
	addq	$8, %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	cmpl	$0, 4(%r14)
	je	LBB0_18
## %bb.19:
	movq	_FPGA_MGR_EXTERNAL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_23
## %bb.20:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_18:
	xorl	%ebx, %ebx
LBB0_21:
	movq	%r14, %rdi
	callq	_fpga_image_info_free
	movl	%ebx, %edi
LBB0_22:
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_23:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Region already has overlay applied.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"partial-fpga-config"

	.comm	_FPGA_MGR_PARTIAL_RECONFIG,4,2  ## @FPGA_MGR_PARTIAL_RECONFIG
L_.str.2:                               ## @.str.2
	.asciz	"external-fpga-config"

	.comm	_FPGA_MGR_EXTERNAL_CONFIG,4,2   ## @FPGA_MGR_EXTERNAL_CONFIG
L_.str.3:                               ## @.str.3
	.asciz	"encrypted-fpga-config"

	.comm	_FPGA_MGR_ENCRYPTED_BITSTREAM,4,2 ## @FPGA_MGR_ENCRYPTED_BITSTREAM
L_.str.4:                               ## @.str.4
	.asciz	"firmware-name"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.5:                               ## @.str.5
	.asciz	"region-unfreeze-timeout-us"

L_.str.6:                               ## @.str.6
	.asciz	"region-freeze-timeout-us"

L_.str.7:                               ## @.str.7
	.asciz	"config-complete-timeout-us"

L_.str.8:                               ## @.str.8
	.asciz	"error: specified firmware and external-fpga-config"

	.no_dead_strip	_of_fpga_region_parse_ov
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_fpga_region_parse_ov
_of_fpga_region_parse_ov:               ; @of_fpga_region_parse_ov
	.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	x8, [x20], #8
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x21, x1
	mov	x0, x1
	bl	_child_regions_with_firmware
	cbz	w0, LBB0_5
LBB0_4:
	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	_ERR_PTR
LBB0_5:
	mov	x0, x20
	bl	_fpga_image_info_alloc
	cbz	x0, LBB0_17
; %bb.6:
	mov	x19, x0
	str	x21, [x0, #24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _FPGA_MGR_PARTIAL_RECONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FPGA_MGR_PARTIAL_RECONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
Lloh11:
	adrp	x22, _FPGA_MGR_EXTERNAL_CONFIG@GOTPAGE
Lloh12:
	ldr	x22, [x22, _FPGA_MGR_EXTERNAL_CONFIG@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	x0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _FPGA_MGR_ENCRYPTED_BITSTREAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FPGA_MGR_ENCRYPTED_BITSTREAM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_of_property_read_string
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	x1, [sp, #8]
Lloh20:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kstrdup
	str	w0, [x19, #4]
	cbz	w0, LBB0_22
LBB0_14:
	add	x2, x19, #16
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	add	x2, x19, #12
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	add	x2, x19, #8
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_18
; %bb.15:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.16:
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x19
	bl	_fpga_image_info_free
	mov	x0, x20
LBB0_20:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_21:
	mov	x0, x19
	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
LBB0_22:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Region already has overlay applied.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"partial-fpga-config"

	.comm	_FPGA_MGR_PARTIAL_RECONFIG,4,2  ; @FPGA_MGR_PARTIAL_RECONFIG
l_.str.2:                               ; @.str.2
	.asciz	"external-fpga-config"

	.comm	_FPGA_MGR_EXTERNAL_CONFIG,4,2   ; @FPGA_MGR_EXTERNAL_CONFIG
l_.str.3:                               ; @.str.3
	.asciz	"encrypted-fpga-config"

	.comm	_FPGA_MGR_ENCRYPTED_BITSTREAM,4,2 ; @FPGA_MGR_ENCRYPTED_BITSTREAM
l_.str.4:                               ; @.str.4
	.asciz	"firmware-name"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.5:                               ; @.str.5
	.asciz	"region-unfreeze-timeout-us"

l_.str.6:                               ; @.str.6
	.asciz	"region-freeze-timeout-us"

l_.str.7:                               ; @.str.7
	.asciz	"config-complete-timeout-us"

l_.str.8:                               ; @.str.8
	.asciz	"error: specified firmware and external-fpga-config"

	.no_dead_strip	_of_fpga_region_parse_ov
.subsections_via_symbols
