	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_set_partition           ## -- Begin function wl1251_set_partition
	.p2align	4, 0x90
_wl1251_set_partition:                  ## @wl1251_set_partition
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DEBUG_SPI@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
	leaq	(%r12,%rbx), %rax
	movq	_HW_ACCESS_MEMORY_MAX_RANGE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jle	LBB0_2
## %bb.1:
	movq	_DEBUG_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	(%r13), %rbx
	subq	%r12, %rbx
	movq	_DEBUG_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	_DEBUG_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
LBB0_2:
	movq	%r14, %r13
	subq	%r15, %r13
	jge	LBB0_5
## %bb.3:
	leaq	(%rbx,%r14), %rax
	cmpq	%r15, %rax
	jle	LBB0_5
## %bb.4:
	movq	_DEBUG_SPI@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	%r15, %rbx
	subq	%r14, %rbx
	jmp	LBB0_8
LBB0_5:
	cmpq	%r14, %r15
	jge	LBB0_9
## %bb.6:
	leaq	(%r12,%r15), %rax
	cmpq	%r14, %rax
	jle	LBB0_9
## %bb.7:
	movq	_DEBUG_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1251_debug
	movq	%r13, %r12
	movq	_DEBUG_SPI@GOTPCREL(%rip), %r13
LBB0_8:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_wl1251_debug
LBB0_9:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, -72(%rbp)
	movq	%rbx, -80(%rbp)
	movq	%r15, -56(%rbp)
	movq	%r12, -64(%rbp)
	movq	%r14, 32(%rdi)
	movq	%r15, 24(%rdi)
	movq	$0, 16(%rdi)
	movq	%rbx, 8(%rdi)
	movq	(%rdi), %rax
	movq	_HW_ACCESS_PART0_SIZE_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-80(%rbp), %rdx
	movl	$32, %ecx
	callq	*(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_SPI,4,2                  ## @DEBUG_SPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mem_start %08X mem_size %08X"

L_.str.1:                               ## @.str.1
	.asciz	"reg_start %08X reg_size %08X"

	.comm	_HW_ACCESS_MEMORY_MAX_RANGE,8,3 ## @HW_ACCESS_MEMORY_MAX_RANGE
L_.str.2:                               ## @.str.2
	.asciz	"Total size exceeds maximum virtual address range.  Truncating partition[0]."

L_.str.3:                               ## @.str.3
	.asciz	"End of partition[0] is overlapping partition[1].  Adjusted."

L_.str.4:                               ## @.str.4
	.asciz	"End of partition[1] is overlapping partition[0].  Adjusted."

	.comm	_HW_ACCESS_PART0_SIZE_ADDR,4,2  ## @HW_ACCESS_PART0_SIZE_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_set_partition           ; -- Begin function wl1251_set_partition
	.p2align	2
_wl1251_set_partition:                  ; @wl1251_set_partition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x24, _DEBUG_SPI@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DEBUG_SPI@GOTPAGEOFF]
	ldr	w0, [x24]
	stp	x1, x2, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	ldr	w0, [x24]
	stp	x20, x22, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1251_debug
Lloh9:
	adrp	x25, _HW_ACCESS_MEMORY_MAX_RANGE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HW_ACCESS_MEMORY_MAX_RANGE@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x9, x22, x23
	cmp	x9, x8
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1251_debug
	ldr	x8, [x25]
	sub	x23, x8, x22
	ldr	w0, [x24]
	stp	x21, x23, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	ldr	w0, [x24]
	stp	x20, x22, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1251_debug
LBB0_2:
	subs	x25, x21, x20
	b.ge	LBB0_5
; %bb.3:
	add	x8, x23, x21
	cmp	x8, x20
	b.le	LBB0_5
; %bb.4:
	ldr	w0, [x24]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wl1251_debug
	sub	x23, x20, x21
	b	LBB0_8
LBB0_5:
	cmp	x20, x21
	b.ge	LBB0_9
; %bb.6:
	add	x8, x22, x20
	cmp	x8, x21
	b.le	LBB0_9
; %bb.7:
	ldr	w0, [x24]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wl1251_debug
	mov	x22, x25
LBB0_8:
	ldr	w0, [x24]
	stp	x21, x23, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	ldr	w0, [x24]
	stp	x20, x22, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1251_debug
LBB0_9:
	stp	x23, x21, [sp, #24]
	stp	x22, x20, [sp, #40]
	stp	x20, x21, [x19, #24]
	stp	x23, xzr, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _HW_ACCESS_PART0_SIZE_ADDR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HW_ACCESS_PART0_SIZE_ADDR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #32
	blr	x8
	ldr	x8, [sp, #56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_SPI,4,2                  ; @DEBUG_SPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mem_start %08X mem_size %08X"

l_.str.1:                               ; @.str.1
	.asciz	"reg_start %08X reg_size %08X"

	.comm	_HW_ACCESS_MEMORY_MAX_RANGE,8,3 ; @HW_ACCESS_MEMORY_MAX_RANGE
l_.str.2:                               ; @.str.2
	.asciz	"Total size exceeds maximum virtual address range.  Truncating partition[0]."

l_.str.3:                               ; @.str.3
	.asciz	"End of partition[0] is overlapping partition[1].  Adjusted."

l_.str.4:                               ; @.str.4
	.asciz	"End of partition[1] is overlapping partition[0].  Adjusted."

	.comm	_HW_ACCESS_PART0_SIZE_ADDR,4,2  ; @HW_ACCESS_PART0_SIZE_ADDR
.subsections_via_symbols
