	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdswap_store_eb
_mtdswap_store_eb:                      ## @mtdswap_store_eb
	.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
	cmpq	%rsi, 8(%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movl	(%rdi), %r12d
	movl	4(%rsi), %eax
	movq	_EBLOCK_BITFLIP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_MTDSWAP_BITFLIP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EBLOCK_READERR@GOTPCREL(%rip), %rcx
	movq	_EBLOCK_FAILED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.4:
	movq	_MTDSWAP_FAILING@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mtdswap_rb_add
LBB0_6:
	cmpl	%r12d, %r15d
	jne	LBB0_8
## %bb.7:
	movq	_MTDSWAP_USED@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	shrl	%r12d
	cmpl	%r12d, %r15d
	jbe	LBB0_11
## %bb.12:
	movq	_MTDSWAP_LOWFRAG@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_MTDSWAP_DIRTY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_MTDSWAP_HIFRAG@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtdswap_rb_add                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EBLOCK_BITFLIP,4,2             ## @EBLOCK_BITFLIP
	.comm	_MTDSWAP_BITFLIP,4,2            ## @MTDSWAP_BITFLIP
	.comm	_EBLOCK_READERR,4,2             ## @EBLOCK_READERR
	.comm	_EBLOCK_FAILED,4,2              ## @EBLOCK_FAILED
	.comm	_MTDSWAP_FAILING,4,2            ## @MTDSWAP_FAILING
	.comm	_MTDSWAP_USED,4,2               ## @MTDSWAP_USED
	.comm	_MTDSWAP_DIRTY,4,2              ## @MTDSWAP_DIRTY
	.comm	_MTDSWAP_LOWFRAG,4,2            ## @MTDSWAP_LOWFRAG
	.comm	_MTDSWAP_HIFRAG,4,2             ## @MTDSWAP_HIFRAG
	.no_dead_strip	_mtdswap_store_eb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdswap_store_eb
_mtdswap_store_eb:                      ; @mtdswap_store_eb
	.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
	ldr	x8, [x0, #8]
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
	ldp	w22, w8, [x1]
Lloh0:
	adrp	x9, _EBLOCK_BITFLIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EBLOCK_BITFLIP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _MTDSWAP_BITFLIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTDSWAP_BITFLIP@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	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
LBB0_4:
Lloh5:
	adrp	x9, _EBLOCK_READERR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EBLOCK_READERR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _EBLOCK_FAILED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EBLOCK_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _MTDSWAP_FAILING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MTDSWAP_FAILING@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mtdswap_rb_add
LBB0_7:
Lloh13:
	adrp	x8, _MTDSWAP_USED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MTDSWAP_USED@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MTDSWAP_DIRTY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MTDSWAP_DIRTY@GOTPAGEOFF]
Lloh17:
	adrp	x10, _MTDSWAP_HIFRAG@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MTDSWAP_HIFRAG@GOTPAGEOFF]
Lloh19:
	adrp	x11, _MTDSWAP_LOWFRAG@GOTPAGE
Lloh20:
	ldr	x11, [x11, _MTDSWAP_LOWFRAG@GOTPAGEOFF]
	cmp	w22, w21, lsr #1
	csel	x10, x11, x10, hi
	cmp	w22, #0
	csel	x9, x9, x10, eq
	cmp	w22, w21
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, 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	_mtdswap_rb_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBLOCK_BITFLIP,4,2             ; @EBLOCK_BITFLIP
	.comm	_MTDSWAP_BITFLIP,4,2            ; @MTDSWAP_BITFLIP
	.comm	_EBLOCK_READERR,4,2             ; @EBLOCK_READERR
	.comm	_EBLOCK_FAILED,4,2              ; @EBLOCK_FAILED
	.comm	_MTDSWAP_FAILING,4,2            ; @MTDSWAP_FAILING
	.comm	_MTDSWAP_USED,4,2               ; @MTDSWAP_USED
	.comm	_MTDSWAP_DIRTY,4,2              ; @MTDSWAP_DIRTY
	.comm	_MTDSWAP_LOWFRAG,4,2            ; @MTDSWAP_LOWFRAG
	.comm	_MTDSWAP_HIFRAG,4,2             ; @MTDSWAP_HIFRAG
	.no_dead_strip	_mtdswap_store_eb
.subsections_via_symbols
