	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_set_partition           ## -- Begin function wlcore_set_partition
	.p2align	4, 0x90
_wlcore_set_partition:                  ## @wlcore_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$32, %edx
	callq	_memcpy
	movq	_DEBUG_IO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movl	(%r15), %edi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wl1271_debug
	movl	(%r15), %edi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_wl1271_debug
	movl	(%r15), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_wl1271_debug
	movq	_HW_PART0_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_HW_PART0_SIZE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_HW_PART1_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	_HW_PART1_SIZE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_HW_PART2_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_HW_PART2_SIZE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_HW_PART3_START_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_wlcore_raw_write32
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_HW_PART3_SIZE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlcore_raw_write32             ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_IO,4,2                   ## @DEBUG_IO
	.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"

L_.str.2:                               ## @.str.2
	.asciz	"mem2_start %08X mem2_size %08X"

L_.str.3:                               ## @.str.3
	.asciz	"mem3_start %08X mem3_size %08X"

	.comm	_HW_PART0_START_ADDR,4,2        ## @HW_PART0_START_ADDR
	.comm	_HW_PART0_SIZE_ADDR,4,2         ## @HW_PART0_SIZE_ADDR
	.comm	_HW_PART1_START_ADDR,4,2        ## @HW_PART1_START_ADDR
	.comm	_HW_PART1_SIZE_ADDR,4,2         ## @HW_PART1_SIZE_ADDR
	.comm	_HW_PART2_START_ADDR,4,2        ## @HW_PART2_START_ADDR
	.comm	_HW_PART2_SIZE_ADDR,4,2         ## @HW_PART2_SIZE_ADDR
	.comm	_HW_PART3_START_ADDR,4,2        ## @HW_PART3_START_ADDR
	.comm	_HW_PART3_SIZE_ADDR,4,2         ## @HW_PART3_SIZE_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_set_partition           ; -- Begin function wlcore_set_partition
	.p2align	2
_wlcore_set_partition:                  ; @wlcore_set_partition
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	mov	w2, #32
	bl	_memcpy
Lloh0:
	adrp	x21, _DEBUG_IO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DEBUG_IO@GOTPAGEOFF]
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #16]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
	ldr	w0, [x21]
	ldp	w3, w2, [x20, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1271_debug
	ldr	w0, [x21]
	ldp	w3, w2, [x20]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wl1271_debug
Lloh10:
	adrp	x8, _HW_PART0_START_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HW_PART0_START_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh13:
	adrp	x8, _HW_PART0_SIZE_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HW_PART0_SIZE_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh16:
	adrp	x8, _HW_PART1_START_ADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HW_PART1_START_ADDR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh19:
	adrp	x8, _HW_PART1_SIZE_ADDR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HW_PART1_SIZE_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh22:
	adrp	x8, _HW_PART2_START_ADDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HW_PART2_START_ADDR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh25:
	adrp	x8, _HW_PART2_SIZE_ADDR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HW_PART2_SIZE_ADDR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh28:
	adrp	x8, _HW_PART3_START_ADDR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HW_PART3_START_ADDR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_wlcore_raw_write32
	tbnz	w0, #31, LBB0_8
; %bb.7:
Lloh31:
	adrp	x8, _HW_PART3_SIZE_ADDR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HW_PART3_SIZE_ADDR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wlcore_raw_write32
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_IO,4,2                   ; @DEBUG_IO
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"mem2_start %08X mem2_size %08X"

l_.str.3:                               ; @.str.3
	.asciz	"mem3_start %08X mem3_size %08X"

	.comm	_HW_PART0_START_ADDR,4,2        ; @HW_PART0_START_ADDR
	.comm	_HW_PART0_SIZE_ADDR,4,2         ; @HW_PART0_SIZE_ADDR
	.comm	_HW_PART1_START_ADDR,4,2        ; @HW_PART1_START_ADDR
	.comm	_HW_PART1_SIZE_ADDR,4,2         ; @HW_PART1_SIZE_ADDR
	.comm	_HW_PART2_START_ADDR,4,2        ; @HW_PART2_START_ADDR
	.comm	_HW_PART2_SIZE_ADDR,4,2         ; @HW_PART2_SIZE_ADDR
	.comm	_HW_PART3_START_ADDR,4,2        ; @HW_PART3_START_ADDR
	.comm	_HW_PART3_SIZE_ADDR,4,2         ; @HW_PART3_SIZE_ADDR
.subsections_via_symbols
